Reading time: 3 min

This recipe shows how to implement navigation in SwiftUI using NavigationStack. It makes both declarative and programmatic navigation dead easy, allowing for simple transitions both forwards and backwards, including a full stack unwind.

NavigationStack is SwiftUI 4 replacement for NavigationView which successfuly improves many of its predecessor's shortcomings, namely in the realm of programmatic navigation. If you're interested in a feature-rich replacement for NavigationView, check out our SwiftUI Segues recipe.

Continue Reading...

Reading time: 3 min

This recipe shows how to share in SwiftUI. It showcases the new SwiftUI 4 ShareLink, as well as providing a drop-in replacement compatible with all SwiftUI versions that internally relies on UIActivityViewController.

Continue Reading...

Reading time: 1 min

This recipe shows how to change TextEditor background color in SwiftUI.

Continue Reading...

Reading time: 1 min

This recipe shows how to change List background color in SwiftUI.

Continue Reading...

Reading time: 3 min

This recipe shows how to convert a SwiftUI view to an image, i.e take its snapshot or screenshot. In SwiftUI 4, there's an awesome component dedicated to this called ImageRenderer, but the same can be achieved on any SwiftUI version.

Continue Reading...