DropletSettingsToolbarMenuItem
One row of a DropletSettingsToolbarMenu (DroppyKit 1.18.0): an action, a separator, or a small section title.
struct DropletSettingsToolbarMenuItem
Initializers
init(_:systemImage:isOn:isEnabled:isDestructive:action:)
init(_ title: String, systemImage: String? = nil, isOn: Bool = false, isEnabled: Bool = true, isDestructive: Bool = false, action: @escaping @MainActor () -> Void)
An action row.
Type properties
separator
static var separator: DropletSettingsToolbarMenuItem { get }
A line between two groups of rows.
Properties
isDestructive
let isDestructive: Bool
Red, for what removes or deletes.
isEnabled
let isEnabled: Bool
false dims the row and refuses it.
isOn
let isOn: Bool
A checkmark beside it, for the current choice of a list.
systemImage
let systemImage: String?
An SF Symbol before the title.
title
let title: String
The row's title, looked up in Droppy's catalog.
Type methods
header(_:)
static func header(_ title: String) -> DropletSettingsToolbarMenuItem
A small title over the rows under it, never chosen: "Sort by".