We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AlertState.Button.type
1 parent 37c6312 commit a8a5bceCopy full SHA for a8a5bce
Sources/ComposableArchitecture/SwiftUI/Alert.swift
@@ -121,7 +121,7 @@ public struct AlertState<Action> {
121
122
public struct Button {
123
public var action: Action?
124
- var type: `Type`
+ public var type: `Type`
125
126
public static func cancel(
127
_ label: TextState,
@@ -150,7 +150,7 @@ public struct AlertState<Action> {
150
Self(action: action, type: .destructive(label: label))
151
}
152
153
- enum `Type` {
+ public enum `Type` {
154
case cancel(label: TextState?)
155
case `default`(label: TextState)
156
case destructive(label: TextState)
0 commit comments