Skip to content

Commit 80b9581

Browse files
committed
wip
1 parent 3095dde commit 80b9581

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Sources/ViewTypes/ToggleWithCheckboxStyle.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,26 @@ import SwiftUI
22

33
/// An abstract representation of the `Toggle` type in SwiftUI, with `.checkbox` style.
44
///
5+
/// ### iOS
6+
///
7+
/// Not available.
8+
///
9+
/// ### tvOS
10+
///
11+
/// Not available.
12+
///
13+
/// ### macOS
14+
///
515
/// ```swift
616
/// struct ContentView: View {
717
/// @State var isOn = false
818
///
919
/// var body: some View {
1020
/// Toggle("Checkbox", isOn: $isOn)
1121
/// .toggleStyle(.checkbox)
12-
/// #if os(macOS)
1322
/// .introspect(.toggle(style: .checkbox), on: .macOS(.v10_15, .v11, .v12, .v13, .v14)) {
1423
/// print(type(of: $0)) // NSButton
1524
/// }
16-
/// #endif
1725
/// }
1826
/// }
1927
/// ```

0 commit comments

Comments
 (0)