File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,6 @@ import UIKit
3636 @IBOutlet weak open var alertActionStackViewTopConstraint : NSLayoutConstraint !
3737 @IBOutlet weak open var alertActionStackViewBottomConstraint : NSLayoutConstraint !
3838
39- open var alertStyle : PMAlertControllerStyle !
40-
4139 open var ALERT_STACK_VIEW_HEIGHT : CGFloat = UIScreen . main. bounds. height < 568.0 ? 40 : 62 //if iphone 4 the stack_view_height is 40, else 62
4240 var animator : UIDynamicAnimator ?
4341
@@ -86,8 +84,7 @@ import UIKit
8684 }
8785
8886 //if alert width = 270, else width = screen width - 36
89- alertStyle = style
90- alertStyle == . alert ? ( alertViewWidthConstraint. constant = 270 ) : ( alertViewWidthConstraint. constant = UIScreen . main. bounds. width - 36 )
87+ alertViewWidthConstraint. constant = ( style == . alert) ? 270 : UIScreen . main. bounds. width - 36
9188
9289 //Gesture recognizer for background dismiss with background touch
9390 let tapRecognizer : UITapGestureRecognizer = UITapGestureRecognizer . init ( target: self , action: #selector( dismissAlertControllerFromBackgroundTap) )
You can’t perform that action at this time.
0 commit comments