HKUI
@objc
public class HKUI : NSObject
UI settings object
-
an array of language names, in the appropriate language, for display
Declaration
Swift
@objc public static var languageNames: [String]
-
an array of standard language codes
Declaration
Swift
@objc public static var languageCodes: [String]
-
top or center color
Declaration
Swift
@objc public var topColor: UIColor
-
bottom or outer color
Declaration
Swift
@objc public var bottomColor: UIColor
-
background type .radial or .linear
Declaration
Swift
@objc public var bgType: BackgroundOptions
-
color positions for top and bottom as percentage
Declaration
Swift
@objc public var colorStops: [Double]
-
A Boolean indicating if there is supposed to be a visible playPause button in the module
Declaration
Swift
@objc public var hasPlayPause: Bool
-
A Boolean indicating if there is supposed to be a visible timeline scrubber in the module
Declaration
Swift
@objc public var hasScrubber: Bool
-
Declaration
Swift
@objc public static func languageCode() -> String
Return Value
the current language code
-
Change the background style with two specified colors
Declaration
Swift
@objc public func setBackgroundColor(top: UIColor, bottom: UIColor, type: BackgroundOptions = .radial)
Parameters
top
Primary color
bottom
Secondary color
bgType
(optional) Background style (BackgroundOptions.radial or BackgroundOptions.linear, default is .radial)