captains-log

[TO-FIX] audiojournaling app
git clone git://git.figbert.com/captains-log.git
Log | Files | Refs

commit 135d0aa24d8caffd59feedb766e4b4e9ff8f9d43
parent 63ed72325d121a58ca15b358a34156630f4fa609
Author: therealFIGBERT <figbertwelner@gmail.com>
Date:   Tue, 12 Nov 2019 21:21:34 -0800

Fix an error with string interpolation of the name variable in the recording introduction prompt causing the name to be off by a character when changed

Diffstat:
MGlobalVars.swift | 8++++----
McaptainsLog/ContentView.swift | 2--
2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/GlobalVars.swift b/GlobalVars.swift @@ -50,10 +50,10 @@ class GlobalVars: ObservableObject { } @Published var name: String = "Unknown" { willSet { - messages[1] = "A day in the life of \(name), entry \(1)" - messages[2] = "\(name)'s audio journal, day \(1)" - messages[3] = "Hi, I'm \(name)" - messages[4] = "\(name)'s audio journal, for your ears only." + messages[1] = "A day in the life of \(newValue), entry \(1)" + messages[2] = "\(newValue)'s audio journal, day \(1)" + messages[3] = "Hi, I'm \(newValue)" + messages[4] = "\(newValue)'s audio journal, for your ears only." } } let dateFormats = [ diff --git a/captainsLog/ContentView.swift b/captainsLog/ContentView.swift @@ -79,8 +79,6 @@ struct ContentView: View { NavigationLink(destination: Settings()) { imgTextButtonStyle(sysImg: "gear", imgSize: 15, buttonText: "Settings") }.simultaneousGesture(TapGesture().onEnded{ - self.timeElapsed = 0.00 - self.audioRecorder.endRecording() self.globalVars.dateListPos = 0 }) }