Lots of UI changes towards allowing the user to add multiple destinations, sync them with iCloud and a better UI in general on all platforms. Not all hooked up yet though.

This commit is contained in:
Jeremy Rand
2021-10-26 23:19:22 -04:00
parent 81e0925f6f
commit 3b2d4beb55
8 changed files with 122 additions and 2 deletions
+1
View File
@@ -10,6 +10,7 @@ import Speech
struct ContentView: View {
@StateObject private var speechForwarder = SpeechForwarder()
// private var destinations: GSDestinations
var body: some View {
VStack {
+11
View File
@@ -0,0 +1,11 @@
//
// GSDestinations.swift
// ListenerGS
//
// Created by Jeremy Rand on 2021-10-19.
//
import Foundation
class GSDestinations : ObservableObject {
}
+1 -1
View File
@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>132</string>
<string>188</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSRequiresIPhoneOS</key>
+4
View File
@@ -2,6 +2,10 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.icloud-container-identifiers</key>
<array/>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.device.audio-input</key>
+5 -1
View File
@@ -9,9 +9,13 @@ import SwiftUI
@main
struct ListenerGSApp: App {
@StateObject private var destinations = GSDestinations()
var body: some Scene {
WindowGroup {
ContentView()
// ContentView(destinations: destinations)
// ContentView()
MainView()
}
}
}
+25
View File
@@ -0,0 +1,25 @@
//
// MainView.swift
// ListenerGS
//
// Created by Jeremy Rand on 2021-10-26.
//
import SwiftUI
struct MainView: View {
var body: some View {
NavigationView {
DestinationsView()
EmptyView() // JSR_TODO - Maybe display some instructions here.
}
}
}
struct MainView_Previews: PreviewProvider {
static var previews: some View {
Group {
MainView()
}
}
}