v0.9.1
Source-breaking changes
You should no longer call prepare()
method before showing StatusAlert
.
Old
let statusAlert = StatusAlert.instantiate(
withImage: UIImage(named: "Some image name"),
title: "StatusAlert title",
message: "Message to show beyond title",
canBePickedOrDismissed: isUserInteractionAllowed)
statusAlert.prepare()
statusAlert.show(
in: viewShowAlertIn,
withVerticalPosition: .center(offset: 0))
New
let statusAlert = StatusAlert.instantiate(
withImage: UIImage(named: "Some image name"),
title: "StatusAlert title",
message: "Message to show beyond title",
canBePickedOrDismissed: isUserInteractionAllowed)
// prepare() method called automatically before showing
statusAlert.show(
in: viewShowAlertIn,
withVerticalPosition: .center(offset: 0))