Toggle

A Boolean control with configurable label and control placement.

A Boolean control with configurable label and control placement.

Public API

  • FToggle
  • FControlPlacement

Example

FToggle(
    isOn: $notificationsEnabled,
    label: "Notifications",
    description: "Receive reminders before scheduled workouts."
)

Source

This reference follows Sources/FreakUI/Components/Inputs/FToggle.swift. Component-specific configuration is documented under the public initializer, modifier, and supporting types in that source file.