init(content: () -> Content, label: () -> Label)
Creates a menu with a custom label.
Available when
Label
conforms to View
and Content
conforms to View
.init<S>(S, content: () -> Content)
Creates a menu that generates its label from a string.
Available when
Label
conforms to View
and Content
conforms to View
.