mirror of
https://github.com/jeremysrand/ListenerApp.git
synced 2026-04-21 05:17:21 +00:00
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:
@@ -10,6 +10,7 @@ import Speech
|
||||
|
||||
struct ContentView: View {
|
||||
@StateObject private var speechForwarder = SpeechForwarder()
|
||||
// private var destinations: GSDestinations
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
//
|
||||
// GSDestinations.swift
|
||||
// ListenerGS
|
||||
//
|
||||
// Created by Jeremy Rand on 2021-10-19.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
class GSDestinations : ObservableObject {
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user