mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 13:23:38 +12:00
17 lines
481 B
Swift
17 lines
481 B
Swift
import SwiftUI
|
|
import PhoenixLiveViewNative
|
|
|
|
struct AshHqRegistry: CustomRegistry {
|
|
enum TagName: String {
|
|
case calloutText = "callout-text"
|
|
}
|
|
typealias AttributeName = EmptyRegistry.None
|
|
|
|
static func lookup(_ name: TagName, element: Element, context: LiveContext<AshHqRegistry>) -> some View {
|
|
print(name)
|
|
switch name {
|
|
case .calloutText:
|
|
return CalloutTextView(element: element, context: context)
|
|
}
|
|
}
|
|
}
|