Skip to content

Commit 907eb18

Browse files
authored
Fix ButtonRole and Button deprecations (#1715)
Replaced AlertState<Action>.ButtonRole with ButtonState<Action>.Role Replaced AlertState<Action>.Button with ButtonState<Action>
1 parent fbd70bf commit 907eb18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/ComposableArchitecture/UIKit/AlertStateUIKit.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
@available(tvOS 13, *)
8181
@available(watchOS, unavailable)
8282
extension UIAlertAction.Style {
83-
init<Action>(_ role: AlertState<Action>.ButtonRole) {
83+
init<Action>(_ role: ButtonState<Action>.Role) {
8484
switch role {
8585
case .cancel:
8686
self = .cancel
@@ -97,7 +97,7 @@
9797
@available(watchOS, unavailable)
9898
extension UIAlertAction {
9999
convenience init<Action>(
100-
_ button: AlertState<Action>.Button,
100+
_ button: ButtonState<Action>,
101101
action: @escaping (Action) -> Void
102102
) {
103103
self.init(

0 commit comments

Comments
 (0)