-
Notifications
You must be signed in to change notification settings - Fork 50
Presentation
Yegor Miroshnichenko edited this page Jul 7, 2018
·
3 revisions
NOTE
To present alert with default settings use
showInKeyWindow()
method.
You can set any of the given parameter, not provided parameters will have default values.
View to present alert in.
Default value is
UIApplication.shared.keyWindow
.
Position in presenter, top
, center
or bottom
.
Default value is
center
.
Offset from vertical position in view.
Default value is 0.
How alert should behave when another one already presented.
Default value is
dismissCurrentlyPresented
.
How long alert should be presented.
Default value is
2
.
NOTE
This time should include fade animation duration (which is
UINavigationControllerHideShowBarDuration
).