I'm trying to create a custom Picker similar to the one in the Reminders app where users can select colors and icons for a list of reminders.
I currently have this:
struct CustomPickerStyle: PickerStyle {
static func _makeView<SelectionValue>(value: _GraphValue<_PickerValue<CustomPickerStyle, SelectionValue>>, inputs: _ViewInputs) -> _ViewOutputs where SelectionValue : Hashable {
}
static func _makeViewList<SelectionValue>(value: _GraphValue<_PickerValue<CustomPickerStyle, SelectionValue>>, inputs: _ViewListInputs) -> _ViewListOutputs where SelectionValue : Hashable {
}
}
These are automatically generated by Xcode. How should I deal with these methods? I could not find any documentation online for making a custom picker view...
Thanks!
Post
Replies
Boosts
Views
Activity
In the Fitness app (iOS 14), the Summary tab has a date that act as a "subtitle" which goes above the title. Is there a way to implement this with SwiftUI?
I know how to change the title by using
.navigationTitle("title")
but I'm not sure if there's a way to add a subtitle.
One way I tried is to create a custom view with the new toolbar modifier, which does give me a title and a subtitle, but it does not give me the same result as in the Fitness app.
Thanks!