Skip to content

Commit 5d37030

Browse files
committed
add Settings link amd Local Network description
1 parent 3de0597 commit 5d37030

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

AllSpark-ios.xcodeproj/project.pbxproj

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
objectVersion = 77;
77
objects = {
88

9-
/* Begin PBXBuildFile section */
10-
/* End PBXBuildFile section */
11-
129
/* Begin PBXFileReference section */
1310
C962D6312ECCE8060085D403 /* AllSpark.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AllSpark.app; sourceTree = BUILT_PRODUCTS_DIR; };
1411
/* End PBXFileReference section */
@@ -279,6 +276,7 @@
279276
INFOPLIST_KEY_LSApplicationCategoryType = "";
280277
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
281278
INFOPLIST_KEY_NSCameraUsageDescription = "The app collects video for VLM anomaly detection.";
279+
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "This app uses the local network to connect to the AllSpark server for video streaming and control.";
282280
INFOPLIST_KEY_NSMicrophoneUsageDescription = "The app collects audio for VLM anomaly detection.";
283281
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
284282
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -318,6 +316,7 @@
318316
INFOPLIST_KEY_LSApplicationCategoryType = "";
319317
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
320318
INFOPLIST_KEY_NSCameraUsageDescription = "The app collects video for VLM anomaly detection.";
319+
INFOPLIST_KEY_NSLocalNetworkUsageDescription = "This app uses the local network to connect to the AllSpark server for video streaming and control.";
321320
INFOPLIST_KEY_NSMicrophoneUsageDescription = "The app collects audio for VLM anomaly detection.";
322321
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
323322
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
@@ -365,12 +364,6 @@
365364
defaultConfigurationName = Release;
366365
};
367366
/* End XCConfigurationList section */
368-
369-
/* Begin XCRemoteSwiftPackageReference section */
370-
/* End XCRemoteSwiftPackageReference section */
371-
372-
/* Begin XCSwiftPackageProductDependency section */
373-
/* End XCSwiftPackageProductDependency section */
374367
};
375368
rootObject = C96C7B752EC6873200C3C312 /* Project object */;
376369
}

AllSpark-ios/ContentView.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ import SwiftUI
22

33
struct ContentView: View {
44

5-
6-
75
var body: some View {
86
TabView {
9-
// HomeView()
10-
// .tabItem {
11-
// Label("Home", systemImage: "house")
12-
// }
137
SettingsView()
148
.tabItem {
159
Label("Settings", systemImage: "gear")

AllSpark-ios/SettingsView.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ struct SettingsView: View {
7878
}
7979
.padding()
8080

81+
Button(action: {
82+
openAppSettings()
83+
}) {
84+
Text("App Settings")
85+
}
86+
.padding()
87+
8188
Spacer()
8289

8390
Text(displayText)
@@ -251,4 +258,13 @@ struct SettingsView: View {
251258
}
252259
}
253260
}
261+
262+
private func openAppSettings() {
263+
guard let settingsURL = URL(string: UIApplication.openSettingsURLString) else { return }
264+
UIApplication.shared.open(settingsURL)
265+
}
266+
}
267+
268+
#Preview {
269+
SettingsView()
254270
}

0 commit comments

Comments
 (0)