Classes
The following classes are available globally.
-
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:
See more// Display popup notification ACNotify.showMessage(text: "Hello World!")
Declaration
Swift
open class ACNotify
-
Defines a set of convenience properties and functions when working on Apple devices, such as checking the device model name (
iPhone10,3
), getting the device type (iPhoneX
), getting the OS version, the current device orientation and internet connection state.Examples:
See moreif HardwareInformation.deviceType == .iPhoneX { // The app is running on an iPhone X ... } if HardwareInformation.isConnectedToNetwork { // The device has an internet connection ... }
Declaration
Swift
open class HardwareInformation