![]() ![]() ![]() The release timing is the same as themeDidChange,Īs long as the system theme changes, systemThemeDidChange will be called.Ĩ. systemThemeDidChange,All objects have this property, which is the same as SystemThemeDidChangeNotification. Unlike appearanceBindUpdater, themeDidChange is called whenever the theme changes.ħ. ThemeDidChange will be released when the object is released,Ĭan be used in multiple places, the callback order is not guaranteed, themeDidChange,All objects have this property, which is the same as ThemeDidChangeNotification. It supports all objects, such as CALayer.Ħ. userInterfaceStyle,Similar to the overrideUserInterfaceStyle method of iOS13 system,īut the function is more powerful than overrideUserInterfaceStyle, It is only called when a refresh is needed, and the theme change does not necessarily require refreshing the UI.ĥ. It will be called when the object needs to be refreshed, and you can implement your own refresh logic here. appearanceBindUpdater,All objects inherited from UIView have this property, If the second parameter is empty, the treatment is the same as if themeColor() is empty.Ĥ. The second parameter represents the picture used under the dark theme (can be empty), The first parameter represents the picture used under the light theme (required), themeImage() has 2 parameters, the parameter can be the image name or the image address, The function of the themeCGColor() parameter is the same as the function of the themeColor() parameter.ģ. If llDarkTheme is not configured, it will return the color under the light theme.Ģ. If it is nil, it will return to the dark color refresh configured in llDarkTheme, If the parameter in themeColor() is a specific Color object, the dark theme will refresh with the specified Color object. The key of the dictionary represents the color/picture name/picture address under the light theme, and the dictionary’s Value represents the color/picture name/picture address under the dark theme.
0 Comments
Leave a Reply. |