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.
1 parent 910ba06 commit a1d6e4fCopy full SHA for a1d6e4f
Sources/Action/UIKitExtensions/UIAlertAction+Action.swift
@@ -3,9 +3,15 @@ import UIKit
3
import RxSwift
4
import RxCocoa
5
6
-public extension UIAlertAction {
+#if swift(>=4.2)
7
+public typealias ActionStyle = UIAlertAction.Style
8
+#else
9
+public typealias ActionStyle = UIAlertActionStyle
10
+#endif
11
- public static func Action(_ title: String?, style: UIAlertAction.Style) -> UIAlertAction {
12
+public extension UIAlertAction {
13
+
14
+ public static func Action(_ title: String?, style: ActionStyle) -> UIAlertAction {
15
return UIAlertAction(title: title, style: style, handler: { action in
16
action.rx.action?.execute(())
17
return
0 commit comments