StyleManager
open class StyleManager
A manager that handles Style objects. The manager listens for significant time changes
and changes to the content size to apply an approriate style for the given condition.
-
The receiver of the delegate. See
StyleManagerDelegatefor more information.Declaration
Swift
public weak var delegate: StyleManagerDelegate? -
Determines whether the style manager should apply a new style given the time of day.
Precondition
Two styles must be provided for this property to have any effect.Declaration
Swift
public var automaticallyAdjustsStyleForTimeOfDay: Bool { get set } -
The styles that are in circulation. Active style is set based on the sunrise and sunset at your current location. A change of preferred content size by the user will also trigger an update.
Precondition
Two styles must be provided forStyleManager.automaticallyAdjustsStyleForTimeOfDayto have any effect.Declaration
Swift
public var styles: [Style] { get set }
Install in Dash
StyleManager Class Reference