aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Base Components/EvolutionPicker/EvolutionPickerMenuHeader.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-04 22:45:30 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-04 22:45:30 +0200
commite21ead77ffdff206d1ae17e5ce93ea34c4227414 (patch)
tree816908ddf90aaf99a6476ab364f8a13c193b99c4 /Map/Presentation/Base Components/EvolutionPicker/EvolutionPickerMenuHeader.swift
parentc843d34f56c207abcf4b93e424125eea2dc601e0 (diff)
Add new fonts and picker style.
Diffstat (limited to 'Map/Presentation/Base Components/EvolutionPicker/EvolutionPickerMenuHeader.swift')
-rw-r--r--Map/Presentation/Base Components/EvolutionPicker/EvolutionPickerMenuHeader.swift26
1 files changed, 26 insertions, 0 deletions
diff --git a/Map/Presentation/Base Components/EvolutionPicker/EvolutionPickerMenuHeader.swift b/Map/Presentation/Base Components/EvolutionPicker/EvolutionPickerMenuHeader.swift
new file mode 100644
index 0000000..b3eeb97
--- /dev/null
+++ b/Map/Presentation/Base Components/EvolutionPicker/EvolutionPickerMenuHeader.swift
@@ -0,0 +1,26 @@
+import SwiftUI
+
+struct EvolutionPickerMenuHeader: View {
+
+ let key: LocalizedStringKey
+
+ var body: some View {
+ HStack(alignment: .center, spacing: Dimensions.Spacing.regular) {
+ Text(key)
+ .font(.Theme.Caption.emphasized)
+ .padding(.vertical, Dimensions.Spacing.cozy)
+ .textCase(.uppercase)
+ .padding(.leading, Dimensions.Spacing.regular)
+ .layoutPriority(1)
+ Spacer()
+ .frame(height: 1)
+ .background(Color.Theme.UI.foreground.opacity(0.2))
+ }
+ .padding(.horizontal, Dimensions.Spacing.regular)
+ .cornerRadius(Dimensions.EvolutionPicker.radius)
+ }
+}
+
+#Preview {
+ EvolutionPickerMenuHeader(key: "stage_type.section.types")
+}