()
| 13 | @objc(EffectUIKit) |
| 14 | public final class _EffectUIKit: NSObject { |
| 15 | @MainActor @objc public static func registerViews() { |
| 16 | EffectUI.register("EffectUIGlass", props: ["cornerRadius", "tintColor", "material"]) { _ in |
| 17 | EffectUIGlassView() |
| 18 | } |
| 19 | EffectUI.register("EffectUISymbol", props: ["name", "size", "weight", "tintColor", "accessibilityLabel"]) { _ in |
| 20 | EffectUISymbolView() |
| 21 | } |
| 22 | EffectUI.register( |
| 23 | "EffectUISegmented", |
| 24 | props: ["segments", "selected", "momentary", "tintColor", "size", "disabled"] |
| 25 | ) { EffectUISegmentedView($0) } |
| 26 | EffectUI.register( |
| 27 | "EffectUIButton", |
| 28 | props: ["symbol", "label", "bezel", "tintColor", "size", "disabled", "accessibilityLabel"] |
| 29 | ) { EffectUIButtonView($0) } |
| 30 | EffectUI.register("EffectUIProgress", props: ["value", "shape", "tintColor"]) { _ in |
| 31 | EffectUIProgressView() |
| 32 | } |
| 33 | #if os(macOS) |
| 34 | EffectUI.register("EffectUIWindowDrag") { _ in EffectUIWindowDragView() } |
| 35 | EffectUI.register("EffectUICheckbox", props: ["value", "disabled", "accessibilityLabel"]) { |
| 36 | EffectUICheckboxView($0) |
| 37 | } |
| 38 | #endif |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Removed props arrive as `NSNull`, which these casts read as `nil`. |
nothing calls this directly
no test coverage detected