ash_hq/iOS/AshHq/Registry.swift
2022-09-09 00:45:20 -04:00

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)
}
}
}