From b7c020be62caeb6152c4f7ee79ab3c20c106a142 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Fri, 16 Jul 2021 23:20:52 -0400 Subject: [PATCH] Some very minor UI changes. --- ListenerApp/ContentView.swift | 12 ++++++++---- ListenerApp/Info.plist | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ListenerApp/ContentView.swift b/ListenerApp/ContentView.swift index 49086bd..83f3a8b 100644 --- a/ListenerApp/ContentView.swift +++ b/ListenerApp/ContentView.swift @@ -31,16 +31,20 @@ struct ContentView: View { validate(destination: ipAddress) } .padding() + Label(textHeard, systemImage:"") .labelStyle(TitleOnlyLabelStyle()) .padding() + Button("Listen") { listen() } - .padding() - .background(listening ? Color.red : Color.white) - .foregroundColor(listening ? .black : .blue) - .disabled(listenEnabled == false) + .padding() + .background(listening ? Color.red : Color.white) + .foregroundColor(listening ? .black : .blue) + .disabled(listenEnabled == false) + .frame(maxWidth: .infinity) + .buttonStyle(PlainButtonStyle()) } } diff --git a/ListenerApp/Info.plist b/ListenerApp/Info.plist index 51f2e1a..220e1b2 100644 --- a/ListenerApp/Info.plist +++ b/ListenerApp/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString 1.0 CFBundleVersion - 36 + 39 LSRequiresIPhoneOS NSSpeechRecognitionUsageDescription