Context Menu

Overview

Subjects

Some Rules to Consider

  • Put only important ones

  • Item count should not be more than 3

  • Do not repeat the context menu anywhere else

Creating Context Menu

Hacking with Swift / 100 Days / Day-81 - Creating context menus

Sample Codes

Since context menus are used in all devices it should have consistent format. SwiftUI does not allow us to change almost any format like color or etc. . Thus with adding a sole to that can open some door for format.

Button(role:  .destructive) {}

Adding a context menu to an image

Hacking with Swift / 100 Days - Day-84 - Adding a context menu to an image

Sources

Videos

Articles / Documents

See also

Last updated