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.
Reading time: 1 min
This quick recipe shows how to set custom locale, calendar and time zone on a SwiftUI DatePicker and MultiDatePicker.
Drag to Select in SwiftUI Charts
Reading time: 3 min
This recipe shows how to implement drag / swipe selection in SwiftUI using Apple's new Charts Framework. It allows you to read data for a range of values from the chart.
SwiftUI Request App Review (Any Version)
Reading time: 1 min
This recipe shows how to request app review in SwiftUI on any version. This is the SwiftUI equivalent of requestReview(in:)
method and is supported natively on SwiftUI 4, but can also work on earlier versions.
Styling SwiftUI Gauge
Reading time: 1 min
This recipe shows how to style SwiftUI Gauge views. You'll implement a needle gauge views that mimics speedometers in cars using a custom GaugeStyle
.