ACNotify
open class ACNotify
ACNotify
provides a simple Toast-like popup notification that is displayed at the bottom of the device’s screen for 1 second before disappearing.
Example:
// Display popup notification
ACNotify.showMessage(text: "Hello World!")
-
If
true
and a notification message is already being displayed, any new message will be ignored until the current message has finished displaying.Declaration
Swift
public static var suppressMultipleMessages: Bool = true
-
If
true
,ACNotify
will display new messages, else iffalse
, all new messages will not be displayed. This is useful if a component displays its own notifications but calls a sub component that also displays notifications. The parent component can use this property to supress the child’s notifications.Declaration
Swift
public static var notificationsEnabled: Bool = true
-
Displays a simple Toast-like popup notification at the bottom of the device’s screen for 1 second before disappearing.
Example:
// Display popup notification ACNotify.showMessage(text: "Hello World!")
Declaration
Swift
public static func showMessage(text: String)
Parameters
text
The message to display in the popup.