DropletSettingsToolbarButton
One action of a page, as a pill in Droppy's Settings toolbar (DroppyKit 1.18.0): "New item", "Add application".
@MainActor struct DropletSettingsToolbarButton
DropletSettingsToolbarButton("New prompt", systemImage: "plus") {
model.addPrompt()
}Sentence case, like every title in Droppy's Settings, and looked up in Droppy's catalog the way row titles are. A glyph alone (init(_:iconOnly:action:)) is a round pill, with the title as its tooltip and what VoiceOver says.
Initializers
init(_:iconOnly:action:)
@MainActor init(_ title: String, iconOnly systemImage: String, action: @escaping @MainActor () -> Void)
A round pill with systemImage alone; title is its tooltip and accessibility label.
init(_:systemImage:action:)
@MainActor init(_ title: String, systemImage: String? = nil, action: @escaping @MainActor () -> Void)
A pill with a title, and systemImage before it when you name one.
Properties
body
@MainActor var body: some View { get }