diff --git a/damus/Components/CustomPicker.swift b/damus/Components/CustomPicker.swift index 7badc55f..454384d0 100644 --- a/damus/Components/CustomPicker.swift +++ b/damus/Components/CustomPicker.swift @@ -12,31 +12,25 @@ let RECTANGLE_GRADIENT = LinearGradient(gradient: Gradient(colors: [ DamusColors.blue ]), startPoint: .leading, endPoint: .trailing) -struct CustomPicker: View { +struct CustomPicker: View { + let tabs: [(String, SelectionValue)] @Environment(\.colorScheme) var colorScheme - + @Namespace var picker @Binding var selection: SelectionValue - @ViewBuilder let content: Content - + public var body: some View { - let contentMirror = Mirror(reflecting: content) - let blocksCount = Mirror(reflecting: contentMirror.descendant("value")!).children.count HStack { - ForEach(0..