DropletToggleRow

Standard toggle row: title and info tip on the left, small switch on the right.

@MainActor struct DropletToggleRow

Initializers

init(title:icon:iconColor:subtitle:isOn:)

@MainActor init(title: String, icon: String? = nil, iconColor: Color? = nil, subtitle: String = "", isOn: Binding<Bool>)

Creates a toggle row.

  • Parameters:
  • title: Row title, sentence case.
  • icon: Optional SF Symbol before the title.
  • iconColor: Icon tint, defaults to secondary.
  • subtitle: Info tip text; empty hides the tip.
  • isOn: The toggle binding.

Properties

body

@MainActor var body: some View { get }