From 5c59225ee10949cc58fccce4d968d1ede58be9b6 Mon Sep 17 00:00:00 2001 From: ivar Date: Mon, 20 Oct 2025 23:12:31 +0200 Subject: Change tabs, get started with camera --- "ios/H\303\246-appen/MapContentView.swift" | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'ios/Hæ-appen/MapContentView.swift') diff --git "a/ios/H\303\246-appen/MapContentView.swift" "b/ios/H\303\246-appen/MapContentView.swift" index 4d35dfe..e77c2b7 100644 --- "a/ios/H\303\246-appen/MapContentView.swift" +++ "b/ios/H\303\246-appen/MapContentView.swift" @@ -14,29 +14,15 @@ struct MapContentView: View { @State private var position: MapCameraPosition = .automatic var annotationStringKey: LocalizedStringKey = "Annotation" var annotationCoordinate: CLLocationCoordinate2D = CLLocationCoordinate2D.init() - let symbolSet: [String] = ["cloud.bolt.rain.fill", "sun.rain.fill", "moon.stars.fill", "moon.fill"] var body: some View { - if #available(iOS 26, *) { VStack { Map(initialPosition: .userLocation(fallback: position), scope: mapScope) - }.safeAreaInset(edge: .trailing) { - GlassEffectContainer(spacing: 10.0) { - HStack(spacing: 20.0) { - ForEach(symbolSet.indices, id: \.self) { item in - Image(systemName: symbolSet[item]) - .frame(width: 80.0, height: 80.0) - .font(.system(size: 36)) - .glassEffect() - .glassEffectUnion(id: item < 2 ? "1" : "2", namespace: mapScope) - } - } - } - }.mapScope(mapScope) - .task { + } + .task { LocationAuthorizer.shared.requestWhenInUse() } - } + } } -- cgit v1.3