Skip to content

Commit 068333a

Browse files
authored
Make AlertState.ButtonAction.type public (#871)
1 parent 696c122 commit 068333a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ComposableArchitecture/SwiftUI/Alert.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public struct AlertState<Action> {
165165
}
166166

167167
public struct ButtonAction {
168-
let type: ActionType
168+
public let type: ActionType
169169

170170
public static func send(_ action: Action) -> Self {
171171
.init(type: .send(action))
@@ -175,7 +175,7 @@ public struct AlertState<Action> {
175175
.init(type: .animatedSend(action, animation: animation))
176176
}
177177

178-
enum ActionType {
178+
public enum ActionType {
179179
case send(Action)
180180
case animatedSend(Action, animation: Animation?)
181181
}
@@ -313,7 +313,7 @@ extension AlertState.Button: Equatable where Action: Equatable {}
313313

314314
extension AlertState.ButtonAction: Hashable where Action: Hashable {}
315315
extension AlertState.ButtonAction.ActionType: Hashable where Action: Hashable {
316-
func hash(into hasher: inout Hasher) {
316+
public func hash(into hasher: inout Hasher) {
317317
switch self {
318318
case let .send(action), let .animatedSend(action, animation: _):
319319
hasher.combine(action)

0 commit comments

Comments
 (0)