XCode 26.4 日本語化計画
元のドキュメント: developer.apple.com/documentation/swiftui/toggle/init(ison:intent:label:)
AppIntent を実行するトグルを作成します。
nonisolated
init<I>(
isOn: Bool,
intent: I,
@ViewBuilder label: () -> Label
) where I : AppIntent
Label が View に準拠する時利用可能です。
isOn
トグルスイッチがオンかオフか。
intent
実行されるべき AppIntent。
label
トグルの目的を説明するビュー。
AppIntent を実行するトグルを作成し、ローカライズされた文字列キーからそのラベルを生成します。