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
.
SwiftUI Gauge Cheatsheet
Reading time: 1 min
This recipe is a cheatsheet on all the possible SwiftUI Gauge styles, as well as how to set tint and all the labels.
Responsive SwiftUI with ViewThatFits
Reading time: 1 min
This recipe shows how to implement responsive, adaptive SwiftUI layouts using ViewThatFits
. This view adapts to the available space by providing the first child view that fits.