swiftui-picker Questions
3
Solved
I am using Picker with option for no selection, in iOS15 it is working fine, but in iOS16 it has a default value, how can I remove this default value, I don't need to show the text to the right of ...
Gardol asked 30/9, 2022 at 2:57
4
Solved
We have an application with some 'chat' functionality where questions are asked and the user can answer with some predefined options: for every question a new view is presented. One of those option...
Wiener asked 6/10, 2022 at 13:10
4
Solved
I need to use a Picker view but I don't see any options to hide the green focus border.
Code:
@State private var selectedIndex = 0
var values: [String] = (0 ... 12).map { String($0) }
var body: so...
Turbinate asked 18/12, 2020 at 17:14
3
Solved
I am currently trying to create a page with three adjacent Picker views inside of an HStack as seen below:
I made a CustomPicker view where I limit the frame to 90 x 240, and then use .compositing...
Semivitreous asked 12/12, 2021 at 21:50
2
Im trying to create a SwiftUI Picker in MacOS that looks like the ones in Xcode or other Mac Apps. To be more specific, I'm trying to add that separator line between the elements in the picker.
Lik...
Overact asked 22/7, 2020 at 15:11
1
Is there a way to disable specific picker items? In AppKit, you can disable NSPopUpButton items via the NSMenuValidation protocol, but disabling a label in the picker predictably does nothing. Just...
Agma asked 15/1, 2020 at 9:14
4
Solved
I use a form with a picker, and everything works fine (I am able to select an element from the picker), but I cannot deselect it. Does there exist a way to deselect an item from the picker?
Thank y...
Alfred asked 27/1, 2021 at 17:45
2
Solved
How do I align the Color views in a straight line with the text to the side?
To look like so (text aligned leading):
█ red
█ green
█ blue
Or this (text aligned center):
█ red
█ green
█ blu...
Lenzi asked 14/6, 2021 at 23:34
2
Solved
According to Apple's documentation regarding Picker in SwiftUI using an Enum, if the enum conforms to the Identifiable protocol in addition to CaseIterable, a picker iterating over all cases should...
Mcfarlane asked 9/10, 2020 at 8:15
1
Solved
struct SettingsView: View {
let settings: [Setting] = [
Setting(name: "Aperture Increments", options: ["1/3", "1/2", "1"]),
Setting(name: "Shutter Sp...
Alost asked 13/7, 2020 at 3:9
2
Does anyone have a workaround for the following crash?
I have a form that is displayed via NavigationLink in a parent Navigation Controller like so:
var body: some View {
NavigationView {
Navi...
Doctrinaire asked 14/1, 2020 at 12:10
1
© 2022 - 2024 — McMap. All rights reserved.