MimiBulletinController
public final class MimiBulletinController
Controller which can present and dismiss bulletins, views that appear as modal cards.
-
The currently shown bulletin.
Declaration
Swift
public private(set) weak var shownBulletin: MimiBulletinItem? { get }
-
Show a bulletin.
Declaration
Swift
@discardableResult public func show(_ item: MimiBulletinItem, animated: Bool = true, completion: (() -> Void)? = nil) -> BoolParameters
itemItem to show.
animatedWhether to animate showing the bulletin.
completionCompletion of showing.
Return Value
Whether the bulletin was shown.
-
Queue a bulletin to show after the current bulletin is dismissed.
Declaration
Swift
public func enqueue(_ item: MimiBulletinItem, sort: ((MimiBulletinItem, MimiBulletinItem) -> Bool)? = nil)Parameters
itemItem to queue.
-
Dequeue a bulletin from the pending queue.
Declaration
Swift
@discardableResult public func dequeue(_ item: MimiBulletinItem, sort: ((MimiBulletinItem, MimiBulletinItem) -> Bool)? = nil) -> MimiBulletinItem?Parameters
itemBulletin to dequeue.
sortSorting to apply after dequeueing.
Return Value
Bulletin if dequeued.
-
Dismiss the current bulletin.
If there are queued bulletins, they will be shown instead of dismissing the bulletin.
Declaration
Swift
public func dismiss(animated: Bool = true, completion: (() -> Void)? = nil)Parameters
animatedWhether to animate dismissal.
completionCompletion of dismissal.
-
Invalidate the intrinsic presentation size of a bulletin.
This might cause the presentation of the bulletin to change if its intrinsicContentSize has changed.
Declaration
Swift
public func invalidateIntrinsicSize(for bulletin: MimiBulletinItem)Parameters
bulletinBulletin to invalidate.
MimiBulletinController Class Reference