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.
SwiftUI List with Alternating Row Color
Reading time: 1 min
This recipe shows how to add a SwiftUI List with alternating row colors.
Hex Color in SwiftUI
Reading time: 3 min
This recipe shows how to use specify SwiftUI Colors with hex values, either hexadecimal numbers or strings.
Converting Between UIFont and SwiftUI Font
Reading time: 1 min
This recipe shows how to handle conversions between UIKit UIFont
and SwiftUI Font
, as there are more than a few instances where using both is necessary. This mainly comes into play when you import UIView
s into SwiftUI via UIViewRepresentable
.