Some very minor UI changes.

This commit is contained in:
Jeremy Rand 2021-07-16 23:20:52 -04:00
parent 65ffb20ac7
commit b7c020be62
2 changed files with 9 additions and 5 deletions

View File

@ -31,16 +31,20 @@ struct ContentView: View {
validate(destination: ipAddress) validate(destination: ipAddress)
} }
.padding() .padding()
Label(textHeard, systemImage:"") Label(textHeard, systemImage:"")
.labelStyle(TitleOnlyLabelStyle()) .labelStyle(TitleOnlyLabelStyle())
.padding() .padding()
Button("Listen") { Button("Listen") {
listen() listen()
} }
.padding() .padding()
.background(listening ? Color.red : Color.white) .background(listening ? Color.red : Color.white)
.foregroundColor(listening ? .black : .blue) .foregroundColor(listening ? .black : .blue)
.disabled(listenEnabled == false) .disabled(listenEnabled == false)
.frame(maxWidth: .infinity)
.buttonStyle(PlainButtonStyle())
} }
} }

View File

@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>1.0</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>36</string> <string>39</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSSpeechRecognitionUsageDescription</key> <key>NSSpeechRecognitionUsageDescription</key>