Skip to content

ThemesManager

ppraveentr edited this page Sep 18, 2022 · 3 revisions

ThemesManager

public class ThemesManager: ObservableObject 

Inheritance

ObservableObject

Properties

shared

public static let shared 

themeModel

@Published public private(set) var themeModel: ThemeModel?

Methods

loadThemeModel(_:)

Call this function to generate ColorSchemaValue:​ ThemeModel, For light and dark style from Data dictionary ofTypeThemeDic

public func loadThemeModel(_ jsonData: Data) throws 

Parameters

  • jsonData: ColorSchemaValue<Data> of json for light and dark style
Clone this wiki locally