Vincent Tourraine
Blog

Notes WWDC 2020 : iOS pickers, menus and actions

#dev #iOS

Mes notes pour les sessions dédiées aux « iOS pickers, menus and actions » de la WWDC 2020.

Menus can be used for:

// UIButton, UIBarButtonItem
button.menu = UIMenu(…) // displayed on long press

// UIButton
button.showsMenuAsPrimaryAction = true
// UIBarButtonItem
// Don’t provide a primary action.

Date and time picker

UIDatePicker: not new, but significantly improved, new “Compact” mode

Color picker

UIColorPickerViewController

Updated controls

Other existing controls have received minor updates: