SwiftUI Weekly - Issue #141
The curated collection of links about SwiftUI. Delivered every Monday.
Reading
The power of overlays in SwiftUI
An overlay is a view drawing on top of another view. And today, we will talk about two interesting use cases of using overlays in SwiftUI. One of them allows us to keep the structural identity of the view, and another one becomes very handy whenever you build custom navigation transitions.
Tips and Tricks for Using ContainerRelativeShape in SwiftUI
Imagine that your designer wants you to design a component that has several rounded corner layers.
PhotosPicker in SwiftUI
Nowadays, many frameworks Xcode provides us contain SwiftUI views, including the PhotosUI framework. The PhotosUI framework provides the PhotosPicker button, allowing us to offer photo-picking functionality in our apps quickly. This week we will learn how to use the PhotosPicker view in SwiftUI.
Export SwiftUI views as images in macOS
I have recently been working on an app that allows users to create, edit and export QR codes as images.
SwiftUI Open and Save Panels
SwiftUI has .fileImporter
and .fileExporter
modifiers to let people choose files to open and save. Apply the modifier to a SwiftUI view, such as a button or a menu item. The .fileImporter
and .fileExporter
modifiers are available on both iOS and Mac.
Video
7 Tips to Display Text Like a Pro in SwiftUI
An ex-Apple engineer who worked on SwiftUI shares 7 tips on how to display Text like a pro in SwiftUI.