Skip to content

Commit 3095dde

Browse files
committed
wip
1 parent 54e0fcc commit 3095dde

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Sources/ViewTypes/ToggleWithButtonStyle.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 `.button` 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("Toggle", isOn: $isOn)
1121
/// .toggleStyle(.button)
12-
/// #if os(macOS)
1322
/// .introspect(.toggle(style: .button), on: .macOS(.v12, .v13, .v14)) {
1423
/// print(type(of: $0)) // NSButton
1524
/// }
16-
/// #endif
1725
/// }
1826
/// }
1927
/// ```

0 commit comments

Comments
 (0)