From 0190c52bd5fc37bcf7c2df5fdccd1eae197d0a54 Mon Sep 17 00:00:00 2001 From: Maxime Delporte Date: Tue, 6 May 2025 19:02:53 +0200 Subject: [PATCH] SetUp ContentView. --- macamera.xcodeproj/project.pbxproj | 2 ++ .../xcdebugger/Breakpoints_v2.xcbkptlist | 6 ++++++ macamera/ContentView.swift | 11 ++++------- 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 macamera.xcodeproj/xcuserdata/afx.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist diff --git a/macamera.xcodeproj/project.pbxproj b/macamera.xcodeproj/project.pbxproj index d3f5898..13336b8 100644 --- a/macamera.xcodeproj/project.pbxproj +++ b/macamera.xcodeproj/project.pbxproj @@ -400,6 +400,7 @@ DEVELOPMENT_TEAM = 4CQPKLYWJD; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSCameraUsageDescription = "You need to allow the access to take pictures."; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; @@ -428,6 +429,7 @@ DEVELOPMENT_TEAM = 4CQPKLYWJD; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSCameraUsageDescription = "You need to allow the access to take pictures."; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; diff --git a/macamera.xcodeproj/xcuserdata/afx.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/macamera.xcodeproj/xcuserdata/afx.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..055f76e --- /dev/null +++ b/macamera.xcodeproj/xcuserdata/afx.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + diff --git a/macamera/ContentView.swift b/macamera/ContentView.swift index 8c57829..025187b 100644 --- a/macamera/ContentView.swift +++ b/macamera/ContentView.swift @@ -8,14 +8,11 @@ import SwiftUI struct ContentView: View { + @StateObject private var model = FrameHandler() + var body: some View { - VStack { - Image(systemName: "globe") - .imageScale(.large) - .foregroundStyle(.tint) - Text("Hello, world!") - } - .padding() + FrameView(image: model.frame) + .ignoresSafeArea() } }