Custom Separator/Divider in SwiftUI Lists
Reading time: 2 min
This recipe shows how to implement a custom separator/divider in any SwiftUI list feeded by a ForEach
- like VStack
, LazyVStack
, HStack
, LazyHStack
, etc.
SwiftUI Device Orientation Change Observer
Reading time: 1 min
This recipe shows how to detect device orientation in SwiftUI. You can also use a binding to detect orientation changes.
SwiftUI Haptic Feedback
Reading time: 1 min
This recipe shows how to get haptic feedback when touching SwiftUI views.
Reading time: 1 min
This recipe shows how to manage status bar in SwiftUI - set background color and material, as well as how to show and hide it.
Reading time: 2 min
This recipe shows how to detect user interactions - taps and touches anywhere on the screen - in SwiftUI. The method doesn't interfere with touch events on UI components and can be turned on/off on demand.