Discover more from SwiftUI Weekly
SwiftUI Weekly - Issue #142
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
A few weeks ago, we talked about photo and video picking in SwiftUI. Today we will continue the topic and learn how to import and export files in SwiftUI views. Fortunately, it is straightforward to do with the help of new fileImporter and fileExporter view modifiers.
SwiftUI can be used to simulate real-world objects, such as selecting a color by selecting a specific colored pencil rather than from a colored rectangle. This can provide a more intuitive user experience, especially in a drawing or note-taking app. This article defines a SwiftUI view for a color pencil using the Path and Shape protocols for the components of the pencil.
When building iOS applications, we sometimes need to use UIKit's UIViewController in a SwiftUI view, for example due to an older code base. When doing so, we may need to pass data from the view controller to the SwiftUI view. For that, SwiftUI provides so called coordinators.
Learnings from modernizing the window handling of my Mac app after upgrading to SwiftUI 4. Explaining `\.openWindow`, `.windowResizability` & more.
In this video, I'll demonstrate how to use SwiftUI to create a showcase view that will be used for highlighting your app's new features.