I'm trying to duplicate the Picker example at 31:39 in the "What's new in SwiftUI" WWDC 2023 video at https://developer.apple.com/wwdc23/10148.
My code is at https://github.com/mvolkmann/PickerStyleDemo/blob/main/PickerStyleDemo/ContentView.swift. The attached screenshot shows what I get. Note that I don't see "tag" SF Symbol for each option like the WWDC video shows. Am I doing something wrong?
When used outside of menus, the .palette
style is shown as a segmented picker. You can find more information about this style at https://developer.apple.com/documentation/swiftui/pickerstyle/palette.