Skip to content

Creation

Yegor Miroshnichenko edited this page Jul 7, 2018 · 4 revisions

To create instance of StatusAlert call initializer

let alert = StatusAlert()

Parameters

NOTE

At least one of optional image, title or message should not be nil, otherwise alert will not be shown.

Image

public var image: UIImage?

Optional, should be 90x90 for @1x size. Displayed on top of alert.

Title

public var title: String?

Optional, displayed under image (if present) or on top of alert.

Message

public var message: String?

Optional, displayed at the bottom of alert, under title and image.

Can be picker or dismissed

public var canBePickedOrDismissed: Bool

Determines whether alert can be picked by long tap to delay dismissal and tap to be dismissed. If false controls beyond alert will receive touch events.

Clone this wiki locally