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

Issues with rotating segmented Picker

$
0
0

I am essentially working off this template.

    @State  var Scenario = 0
Picker(selection: $Scenario, label: Text("")) {                Text("1").tag(0)                Text("2").tag(1)                Text("3").tag(2)            }            .pickerStyle(SegmentedPickerStyle())            .rotationEffect(.degrees(90)) 

I would like to have the text also rotated. I've tried all ways I can think of rotating them, and exhausted Google.Another issue is that the frame remains in the original unrotated horizontal position. Which isn't good for fitting it in.


Viewing all articles
Browse latest Browse all 592

Trending Articles



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