Back at it after a little Thanksgiving break and we’ve run into our first (I think) need to use @MainActor
.
Today we added the ability to change image filters and share the resulting image. #100DaysOfSwiftUI

Day 65 and this sort of thing still gets me:
We can then call that whenever our
selectedItem
property changes, by attaching anonChange()
modifier somewhere inContentView
– it really doesn’t matter where, but attaching it to thePhotosPicker
would seem sensible.
We covered modifiers and building our own much earlier in the course, but I still don’t have a good mental model for how/why you can put some of them anywhere and they’ll work. #100DaysOfSwiftUI

For Day 64 we learned how to use PhotosPicker
to… let the user pick photos, use ShareLink
to… create share links, and call requestReview()
to… request the user leave a review of our app! #100DaysOfSwiftUI

For Day 63, we learned about the different Image APIs available: Image
, UIImage
, CGImage
, and CIImage
. We also tried out ContentUnavailableView
!
I continued my normal practice of keeping all the sample code in the project and building UI to see it all. #100DaysOfSwiftUI

For Day 62, I liked that we were shown “Open Quickly” in Xcode and told how to find the definition of a generated interface. I don’t fully understand it now, but I know I will in a couple years.
Oh, and for the start of a new project, we played around with confirmationDialog()
. #100DaysOfSwiftUI

Nope, today was the hardest challenge.
I thought it was weird that yesterday’s challenge didn’t require us to use SwiftData (when we had just spent a bunch of days working with it).
Day 61, the other shoe drops—we need to rewrite yesterday’s app to use SwiftData. #100DaysOfSwiftUI
I thought yesterday was our most difficult day so far… now Day 60 has surpassed it.
Today we built an app from scratch with just some requirements to fetch data and build a couple views. Straightforward but a lot of work! #100DaysOfSwiftUI

Wow, I’m impressed with myself for learning and SwiftData/SwiftUI for being easy.
For Day 59, we had to go back to an old app and upgrade it to use SwiftData, add sorting, and add filtering. It took me about an hour to do everything, which is a lot faster than I expected. #100DaysOfSwiftUI

Day 58: Continuing yesterday’s project and learning about NSPredicate, changing fetch requests dynamically, and creating relationships. One of today’s sections is about syncing SwiftData with CloudKit, but I skipped it because I don’t have a paid developer account (yet)! #100DaysOfSwiftUI

Starting a new project for Day 57, so don’t have much to show so far. We’re learning how to edit SwiftData objects with SwiftUI and filter data using #Predicate
. #100DaysOfSwiftUI

Day 56 was a review and challenge (on our own) day, so I updated the detail view to handle missing data more gracefully. #100DaysOfSwiftUI

For Day 55 we learned how to delete SwiftData objects, sort queries using SortDescriptor
, and add custom buttons to alerts. #100DaysOfSwiftUI

For Day 54, we earnestly started the implementation of a “Bookworm” app and created new SwiftData models and SwiftUI components.
I think the only new APIs were .constant()
and using .buttonStyle(.plain)
to disable the whole “tap the row to trigger its buttons” behavior. #100DaysOfSwiftUI

Day 53 is the start of our first project with SwiftData. So far all the terminology reminds me of my Core Data days. #100DaysOfSwiftUI

Day 52 is a review quiz and challenge day. I found the challenges pretty easy this time around! #100DaysOfSwiftUI

It’s our first day using the debugger! I love debuggers so much. I feel like teaching how to use real debuggers is undervalued by the developer community.
Day 51, officially over half-way done with #100DaysOfSwiftUI!

Continuing our new project in Day 50 by using CodingKeys
to make @Observable
get along with JSONEncoder().encode()
, and learning about haptics with the .sensoryFeedback()
modifier and CHHapticEngine
. #100DaysOfSwiftUI

New project day! Day 49 was focused on async
/await
, URLSession.shared.data()
, AsyncImage
, and the .disabled()
modifier. I’m continuing to use TabView
so I can keep all the sample code around in a project. #100DaysOfSwiftUI

Day 48 included watching two videos. Paul’s had a fun premise (“What Star Wars Can Teach Us About Swift”) and Woz’s video seemed aimed at high-schoolers, but had some good takeaways: “make your studies… a fun part of life” and “always try to be creative and think different.” #100DaysOfSwiftUI
Day 47 was a review and challenge day, with an entire app we had to build from scratch on our own. I’m stoked it only took me 30 minutes to put together this app! #100DaysOfSwiftUI