diff options
| author | ivar <i@oiee.no> | 2025-12-02 21:50:33 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-12-02 21:50:33 +0100 |
| commit | b21c8de01fd05694a5f3d36a5d1f3172e70de339 (patch) | |
| tree | 2843fa1d8cd58f790c882db552a20be2b85b8938 /ios/Hæ-appen | |
| parent | 091580f15a6a0b7a1bc5ed004d9253b36eeb4753 (diff) | |
| download | what-b21c8de01fd05694a5f3d36a5d1f3172e70de339.tar.xz what-b21c8de01fd05694a5f3d36a5d1f3172e70de339.zip | |
Work on CameraView
Diffstat (limited to 'ios/Hæ-appen')
| -rw-r--r-- | ios/Hæ-appen/CameraContentView.swift | 9 | ||||
| -rw-r--r-- | ios/Hæ-appen/CameraManager.swift | 22 | ||||
| -rw-r--r-- | ios/Hæ-appen/CameraService.swift | 16 | ||||
| -rw-r--r-- | ios/Hæ-appen/ClusterHit.swift | 18 | ||||
| -rw-r--r-- | ios/Hæ-appen/TabBarView.swift | 2 |
5 files changed, 26 insertions, 41 deletions
diff --git a/ios/Hæ-appen/CameraContentView.swift b/ios/Hæ-appen/CameraContentView.swift index 0819097..0a7081b 100644 --- a/ios/Hæ-appen/CameraContentView.swift +++ b/ios/Hæ-appen/CameraContentView.swift @@ -5,4 +5,13 @@ // Created by Ivar Løvlie on 20/10/2025. // import SwiftUI +import MijickCamera +struct CameraContentView : View +{ + var body: some View { + VStack { + Text("Hello, World!") + } + } +} diff --git a/ios/Hæ-appen/CameraManager.swift b/ios/Hæ-appen/CameraManager.swift deleted file mode 100644 index a2d5d39..0000000 --- a/ios/Hæ-appen/CameraManager.swift +++ /dev/null @@ -1,22 +0,0 @@ -// -// CameraManager.swift -// Hæ-appen -// -// Created by Ivar Løvlie on 20/10/2025. -// - -import Foundation -import AVFoundation - -class CameraManager: NSObject { - // 1. - private let captureSession = AVCaptureSession() - // 2. - private var deviceInput: AVCaptureDeviceInput? - // 3. - private var videoOutput: AVCaptureVideoDataOutput? - // 4. - private let systemPreferredCamera = AVCaptureDevice.default(for: .auxiliaryPicture) - // 5. - private var sessionQueue = DispatchQueue(label: "video.preview.session") -} diff --git a/ios/Hæ-appen/CameraService.swift b/ios/Hæ-appen/CameraService.swift new file mode 100644 index 0000000..09eb654 --- /dev/null +++ b/ios/Hæ-appen/CameraService.swift @@ -0,0 +1,16 @@ +// +// CameraService.swift +// Hæ-appen +// +// Created by Ivar Løvlie on 28/10/2025. +// + +import AVFoundation + +struct CameraService +{ + func setupSession() + { + + } +} diff --git a/ios/Hæ-appen/ClusterHit.swift b/ios/Hæ-appen/ClusterHit.swift deleted file mode 100644 index ebab096..0000000 --- a/ios/Hæ-appen/ClusterHit.swift +++ /dev/null @@ -1,18 +0,0 @@ -// -// ClusterHit.swift -// Hæ-appen -// -// Created by Ivar Løvlie on 16/09/2025. -// -import GISTools -import WebKit - -struct ClusterHit : Decodable { } - -final class ClusterProvider { - func load(west:Int, south: Int, north: Int, east: Int) async throws -> [ClusterHit] { - let url = URL(string: "http://http://localhost:5281/places?w=\(west)&e=\(east)&s=\(south)&n=\(north)")! - let (data, _) = try await URLSession.shared.data(from: url) - return try JSONDecoder().decode([ClusterHit].self, from: data) - } -} diff --git a/ios/Hæ-appen/TabBarView.swift b/ios/Hæ-appen/TabBarView.swift index aa12188..2a88336 100644 --- a/ios/Hæ-appen/TabBarView.swift +++ b/ios/Hæ-appen/TabBarView.swift @@ -17,7 +17,7 @@ struct TabBarView : View { MapContentView() } Tab("", systemImage: "camera.shutter.button.fill", role: .search) { - MapContentView() + CameraContentView() } } } |
