Skip to content

Commit edd7481

Browse files
kgrigsby59p4checo
authored andcommitted
Fix ButtonRole and Button deprecations (#1715)
Replaced AlertState<Action>.ButtonRole with ButtonState<Action>.Role Replaced AlertState<Action>.Button with ButtonState<Action> (cherry picked from commit 907eb1866a9de2c506a05edee9d277b856a7171c) # Conflicts: # Package.resolved
1 parent 9077988 commit edd7481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ComposableArchitecture/UIKit/AlertStateUIKit.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
@available(macOS, unavailable)
7575
@available(watchOS, unavailable)
7676
extension UIAlertAction.Style {
77-
init<Action>(_ role: AlertState<Action>.ButtonRole) {
77+
init<Action>(_ role: ButtonState<Action>.Role) {
7878
switch role {
7979
case .cancel:
8080
self = .cancel
@@ -88,7 +88,7 @@
8888
@available(watchOS, unavailable)
8989
extension UIAlertAction {
9090
convenience init<Action>(
91-
_ button: AlertState<Action>.Button,
91+
_ button: ButtonState<Action>,
9292
action: @escaping (Action) -> Void
9393
) {
9494
self.init(

0 commit comments

Comments
 (0)