Skip to content

ThemesManager

ppraveentr edited this page Oct 23, 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 ColorSchemeValue:​ ThemeModel, For light and dark style from Data dictionary ofTypeThemeDic

public static func loadThemeModel(_ jsonData: Data) throws 

Parameters

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