Created
October 30, 2021 10:03
-
-
Save diamantidis/bc947b13b8fbde17780583de1549f4eb to your computer and use it in GitHub Desktop.
ContentView.swift for medium post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@State var selectedIndex: Int? = nil | |
let options: [String] = ["GraphQL", "Swift", "Vapor"] | |
var body: some View { | |
// ... | |
PickerField("Select an option", data: self.options, selectionIndex: self.$selectedIndex) | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment