Today: Worked through lesson 13. Also started on the introduction material for Dub Dub Grub.
Thoughts: n/a
Key concepts:
n/a
Links:
Today: Worked through lessons 14 and 15.
Thoughts: n/a
Key concepts:
n/a
Links:
Today: Worked through lessons 16 to 18.
Thoughts: n/a
Key concepts:
- Contentful looks like a nice easy to use CMS for APIs
- SDWebImage is a nice image loading / caching library.
- There is also SDWebImageSwiftUI now.
- You can get a random element from an array with .randomElement()
Links:
Today: Finished "Build an app with SwiftUI Part 2"
Thoughts: n/a
Key concepts:
-
You use UIViewRepresentable to bridge UIKit to SwiftUI
struct SomeView: UIViewRepresentable { typealias UIViewType = UIView func makeUIView(context: Context) -> UIView { } func updateUIView(_ uiView: UIView, context: Context) { } }
-
To render the preview in dark mode
struct SomeView_Previews: PreviewProvider { static var previews: some View { SomeView().environment(\.colorScheme, .dark) } }
-
Colours and Images in an asset catalogue can both have values for Dark mode set.
-
To render with a different dynamic type setting.
.environment(\.sizeCategory, .extraLarge)
Links:
n/a
Today: Started on Build an app with SwiftUI Part 3. Worked through the first 2 lessons.
Thoughts: I am feeling a bit burned out.
Key concepts:
n/a
Links:
n/a
Today: Worked through lesson 3
Thoughts: The day started off well with me starting on the "quick" desk build but then I had a car breakdown :-(
Key concepts:
n/a
Links:
n/a
Today: Worked through lesson 4 & 5
Thoughts: n/a
Key concepts:
-
To generate haptic feedback
UINotificationFeedbackGenerator().notificationOccurred(.success)
-
To generate a single haptic impulse
UIImpactFeedbackGenerator(style: .heavy).impactOccurred()
Links:
n/a