Discover more from SwiftUI Weekly
SwiftUI Weekly - Issue #143
The curated collection of links about SwiftUI. Delivered every Monday.
Simplify building, managing, and growing in-app purchases. Full set of monetisation tools from subscription management SDK to Paywalls and more. Build for free today
WWDC is coming pretty soon, and we are going to use a bunch of new APIs. But how to use new APIs available only for the latest version of iOS? This week we will learn about availability conditions in Swift.
We've just released a big update to our app Exsto, and one of the main additions was an interactive tutorial for new users. The tutorial helps users make their first strokes to start creating their own artworks. For this tutorial we needed to add a moving label that changes its position based on where the next stroke should start. To be able to animate the label as it changes its location, we added it in an overlay over the entire screen.
One of the tasks iOS developers often come to perform is to present paged content. That usually happens in on-boarding screens, as well as other parts in apps where users should scroll left or right to see subsequent content. Doing so in SwiftUI is surprisingly easy, especially when comparing to UIKit where things are a bit more tricky.
Setting a custom
NSWindow in your macOS SwiftUI app can introduce memory leaks. To mitigate this, save the original delegate before setting your custom one and restore it before the window closes.
An introduction to the Apple’s persistence framework.
In this tutorial, I am going to introduce you to SwiftUI PreferenceKeys. If you've been creating SwiftUI applications for a while, you might have been using them without even realizing it.