DropletSettingsPageLink

A row that opens one of your droplet's own Settings pages (DroppyKit 1.13.0).

@MainActor struct DropletSettingsPageLink<Tile> where Tile : View

Drawn the way Droppy's Settings draws a door to another page, which is the way System Settings draws one: a 28pt tile, the title over a secondary subtitle, and a chevron on the trailing edge. The whole row is the button, and a press dims it like a native row. Give every link in a card a tile, or none of them.

DropletSettingsCard {
    DropletSettingsPageLink(
        "Clocks", subtitle: "Which cities, in which order.",
        page: "clocks", icon: clocksIcon
    )
}

Use a rendered icon file for the tile, like Droppy's own pages do: an Icon Composer export at 56 by 56 pixels, with its squircle. The page opens through makeSettingsPage(id:context:).

Initializers

init(_:subtitle:page:icon:)

@MainActor init(_ title: String, subtitle: String? = nil, page id: String, icon: NSImage?)

Creates a link whose tile is an icon image, drawn at 28 points.

init(_:subtitle:page:tile:)

@MainActor init(_ title: String, subtitle: String? = nil, page id: String, @ViewBuilder tile: () -> Tile)

Creates a link whose tile you draw.

Type properties

tileSize

@MainActor static var tileSize: CGFloat { get }

The edge of a link's tile, in points.

Properties

body

@MainActor var body: some View { get }