Skip to content

Commit a8a5bce

Browse files
authored
Re-publicize AlertState.Button.type (#361)
* Re-publicize `AlertState.Button.type` * Update Alert.swift
1 parent 37c6312 commit a8a5bce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ComposableArchitecture/SwiftUI/Alert.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public struct AlertState<Action> {
121121

122122
public struct Button {
123123
public var action: Action?
124-
var type: `Type`
124+
public var type: `Type`
125125

126126
public static func cancel(
127127
_ label: TextState,
@@ -150,7 +150,7 @@ public struct AlertState<Action> {
150150
Self(action: action, type: .destructive(label: label))
151151
}
152152

153-
enum `Type` {
153+
public enum `Type` {
154154
case cancel(label: TextState?)
155155
case `default`(label: TextState)
156156
case destructive(label: TextState)

0 commit comments

Comments
 (0)