Reading time: 1 min
This recipe shows how to present multiple sheets or full screen covers on a single view in SwiftUI. It saves you from having to have multiple modifiers with isPresented
, each holding their own view. Also, it automatically takes care of switching between different sheets / covers with just a single binding.
SwiftUI Timeline list
Reading time: 2 min
This recipe shows how to implement a timeline list in SwiftUI. Timeline list has a line, usually on the side, that connects rows / cells tied to the same date.
Remove List Separator in SwiftUI (All Versions)
Reading time: 2 min
This recipe shows how to remove / hide list separator in SwiftUI. This is tricky because each SwiftUI version has its own solution.
Radial Menu in SwiftUI
Reading time: 4 min
This recipe shows how to implement a radial /circular / arc menu in SwiftUI. A radial menu positions its elements on an arc at a set distance from an anchor view. It is also commonly used in conjunction with a floating action button.
Floating Action Button in SwiftUI
Reading time: 1 min
This recipe shows how to implement a floating action button (FAB) in SwiftUI. This is a simple component, common in Android apps, that sits in the bottom-right corner of the screen, floating above the rest of the content.