IStyleFactory
Style download tool interface.
Methods
func setAttribute(name: String, value: AttributeValue) -> Self
Parameters
func loadDefault() -> Future<Style>
Gets a preset style.
func loadFile(path: String) -> Future<Style>
Loads a custom style from a specified file on the absolute path.
Parameters
path
func loadFile(url: URL) -> Future<Style>
Loads a custom style from a specified file via URL. The URL must follow the “file:” scheme, otherwise an error is returned.
Parameters
url
URL