Up until iOS 13, the options available for inline pickers felt limited. We could show the wheel inline, but that doesn’t look great in table views, lists, and forms. The other option was to use the navigation stack. But if we didn’t want to use the navigation stack, handling pickers could be painful.

Apart from those two options supported directly by iOS, many apps tried to solve this problem by showing the wheel in the keyboard area. Some apps even decided to use an action sheet, which in my opinion is a bad design choice.

Will iOS 14 help us solve this problem? If we look at the documentation for PickerStyle, there is no update for iOS 14. Where else can we look?

I was watching the Design with iOS Menus and Pickers session for WWDC 20 and there was a mention of using menus for selection.

#ios #swift #xcode #swiftui

Using iOS 14’s Menu as a Picker in SwiftUI
54.30 GEEK