SPB Git

Repository Public License

ExtendedComponents.swift 514 B 14 lines swift

1import PrismObjectModel2import SwiftUI34/// Routes the catalog families that live in their own files (`Components+Family<X>.swift`).5struct ExtendedComponents: View {6    let o: PrismObject7    var body: some View {8        if FamilyAComponents.types.contains(o.type) { FamilyAComponents(o: o) }9        else if FamilyBComponents.types.contains(o.type) { FamilyBComponents(o: o) }10        else if FamilyCComponents.types.contains(o.type) { FamilyCComponents(o: o) }11        else { UnknownComponent(o: o) }12    }13}14
Files main
Menu

Theme