Quantcast
Channel: Active questions tagged uipickerview - Stack Overflow
Viewing all articles
Browse latest Browse all 592

SwiftUI - Styling Picker

$
0
0

I have a Picker like this:

enter image description here

Im trying to change the style so it pops up like the keyboard does, see example:

enter image description here

This is my code at the moment:

Picker(selection: $profileViewModel.age, label: Text("Age")) {     ForEach(0 ..< 100) { number in          Text("\(number)")     }}.pickerStyle(WheelPickerStyle())

Viewing all articles
Browse latest Browse all 592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>