MimiAlertBanner
@MainActor
open class MimiAlertBanner : MimiControl
Alert banner which is presented from the top of a view.
-
Title that is currently displayed on the banner.
Declaration
Swift
@MainActor open private(set) var title: String { get }
-
Whether the banner should hide when touched. Default:
true
Declaration
Swift
@MainActor open var hideOnTouch: Bool
-
Tint color used as background of the banner.
Declaration
Swift
@MainActor open override var tintColor: UIColor! { get set }
-
Color of text label.
Declaration
Swift
@MainActor open var textColor: UIColor! { get set }
-
Declaration
Swift
@MainActor open override func construct(in view: UIView)
-
Declaration
Swift
@MainActor open override func apply(theme: MimiThemeDefinition)
-
Show an alert banner.
Declaration
Swift
@discardableResult @MainActor public class func show(title: String, in view: UIView, animated: Bool, completion: (() -> Void)?) -> MimiAlertBanner?
Parameters
title
Title.
view
View to show in.
animated
Whether to animate showing the banner.
completion
Completion handler.
Return Value
Alert banner if it was successfully shown.
-
Hide an alert banner if it is visible.
Declaration
Swift
@MainActor public class func hide(from view: UIView, animated: Bool, completion: (() -> Void)?)
Parameters
view
View that alert banner is shown in.
animated
Whether to animate the hiding.
completion
Completion handler.