Good day to you my friend. Welcome to the another issue of Swift Discovery 👋
Hope you had a nice Easter holiday. There was no issue last week but this week is full of interesting gems. I also stumbled upon a secret Internal menu in Xcode that has many secrets toggles and tools. I’ve been doing iOS for many years but great to discover and learn new things every day.
WWDC 2021 has been announced to take place from 7-11 June. The visuals show people with apps reflected on glasses and that could hint to some AR or Apple Glass. Who know until the One More Thing. It also means I have roughly 2 months to improve my website WWDC Together
Another great video by Paul Hudson about the skills and resources it takes to become a great iOS Developer. Learn the core skills and where to hangout also helps in preparing yourself into a good iOS career
Follow by his previously popular article AppKit is Done, Alex Grebenyuk summarizes again his experience building a somewhat complex pure SwiftUI app across platforms, even for the watchOS. Great lesson to learn in these 2 articles, can’t wait when his framework Pulse comes out.
Ever since NSPersistentCloudKitContainer came out, it has been adopted largely among iOS developers. I remember when Becky Hansmeyer asks on Twitter about a Core Data sync problem with CloudKit, and now I’m happy to see she has written about her findings and tips for working with NSPersistentCloudKitContainer effectively
I really enjoy Dave Delong advices in his post The Laws of Core Data and happy that he writes about Core Data and SwiftUI. There may be lots of learning curves and hidden pitfalls when using Core Data for sure, but the power it provides is truly a time saver. Learn how we can use Core Data effectively in SwiftUI applications.
Great article from Jesse Squires about how to use UserDefaults. This API is so familar to us iOS developers and we have used it countless of times. I’ve also seen tons of open sources that try to wrap UserDefaults in a convenient and type safe way. There might be caveats, and learn how to deal with default values in this article.
I have to admit when I saw the title I thought it was about chart and graph. This is a deep dive into how SwiftUI builds and manages its view graph while observing State changes. Must read article by Federico Zanetello if you want to find more how things work under the hood.
This week, I want to talk about one of the most powerful Xcode features, SwiftUI previews. SwiftUI previews allow you to look at your SwiftUI views inside Xcode without running the app in the simulator.
Like the Swift Algorithms and Swift Numerics packages before it, we’re releasing Swift Collections to help incubate new functionality for the Swift Standard Library. Thanks to Karoy Lorentey and the team for the great work. I’ve started to use OrderedSet from that package in my projects.