Reading time: 3 min

This recipe shows how to implement drag & drop to reorder items in SwiftUI. It offers a recipe for a generic ReorderableForEach which can then be plugged into any layout, such as VStack, LazyVGrid, etc.

Continue Reading...

Reading time: 2 min

This recipe shows how to implement drag & drop functionality in SwiftUI.

Continue Reading...

Reading time: 2 min

This recipe shows how to add radio buttons in SwiftUI. Each radio button will have a customizable appearance and will be a part of a single radio button group.

Continue Reading...

Reading time: 1 min

This recipe shows how to implement a country picker list in SwiftUI. The list can be constructed entirely programmatically, without the need for additional data.

Continue Reading...

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...