Picker

A generic native picker with explicit presentation and FreakUI styling.

A generic native picker with explicit presentation and FreakUI styling.

Public API

  • FPicker
  • FPickerPresentation

Example

FPicker(
    selection: $unit,
    presentation: .menu,
    label: .visible("Unit")
) {
    Text("Kilograms").tag(Unit.kilograms)
    Text("Pounds").tag(Unit.pounds)
}

Source

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