UnbluAppearance
enum UnbluAppearance
The color scheme currently in effect across the Unblu SDK. Driven by the server’s colorScheme config and by setColorScheme(_:).
public only so the other Unblu modules can read/apply it across the module boundary; not part of the customer-facing API.
-
Posted after the color scheme changes at runtime. Surfaces that bake colors into images/appearances (which can’t re-resolve on a trait change, e.g. document co-browsing toolbar buttons) observe this to rebuild.
Declaration
Swift
static let didChangeNotification: Notification.Name -
Forces the given view controller (and its subtree) to the current scheme;
.autofollows the OS.Declaration
Swift
static func apply(to viewController: UIViewController?) -
Forces the given view (or window) to the current scheme;
.autofollows the OS.Declaration
Swift
static func apply(to view: UIView?) -
Re-applies the current
colorSchemeto every still-alive surface previously passed toapply(to:). Call after changingcolorSchemeat runtime so already-built native UI adopts the new scheme.Declaration
Swift
static func reapplyToLiveSurfaces()