MCPcopy Create free account
hub / github.com/Effect-TS/effect / registerViews

Method registerViews

packages/ui/native/apple/EffectUIKit.swift:15–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13@objc(EffectUIKit)
14public 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`.

Callers

nothing calls this directly

Calls 8

EffectUIGlassViewClass · 0.85
EffectUISymbolViewClass · 0.85
EffectUIButtonViewClass · 0.85
registerMethod · 0.45

Tested by

no test coverage detected