SwiftUI Menu and Context Menu: How to Show Buttons with Dropdown Lists

preview_player
Показать описание
Learn how to effectively use menus and context menus in SwiftUI to enhance the user experience of your app. First I will show you what menus are and how they help organizing your app screens and actions.

I will give you a step-by-step implementation of menus in SwiftUI. You'll learn how to add buttons, dividers, and submenus to menus, allowing for enhanced functionality.

Styling and customization of menus are also covered, with a focus on the new picker style introduced in iOS 17. The video provides tips for optimizing space and creating compact menus, including palette selection effects and control group styles.

Finally, you will explore the usage of context menus in different contexts such with images, lists, and tables. On maOS context menus are triggered by right-click or two-finger click gestures and open a drop down menu.

If you liked what you learned and you want to see more, check out one of my courses!
👩🏻‍💻 Combine course

#SwiftUIMenu #SwiftUIContextMenu #SwiftUIPopupMenu #MenuSwiftUI #SwiftMenu
Рекомендации по теме
Комментарии
Автор

Super helpful tutorial. Thanks for sharing.

mohamedh.guelleh
Автор

thanks, youre surprisingly the only resource ive seen on this menu which feels like it should replace a lot of menu/hamburger menu views in current iOS apps

cargoshorts
Автор

So concise and clear! The pace and precision of your video tutorials make it easy to learn quickly! Thank you!

davehodgson
Автор

hello Karin, great tutorials!. Do you know how to change the color of the checkmark for the pickers inside the menu? I like to have the text as primary and the checkmark in blue. Thanks

elemento_artz
Автор

your tutorials are absolutely the best Karin 👏🏼👏🏼👏🏼

EsperanzadeLeon-xkbp
Автор

Thank you so much. You are the best. 👍🏻

qaziaydan
Автор

Thanks for sharing. I use menu instead of context menu and it looks much better.

SHIXIONG
Автор

Really nice piece of research, thank you! 🙏

sergioccarneiro
Автор

can we resize the menu list? also can we change it's background color?
In my app it is coming only in black color and Idk what to do..

alfaaz_ft_abhi
welcome to shbcf.ru