iOS: the greeting's timer is Foundation's (the shared Kotlin has a Timer too)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRTvbHMpudRfQWK4c4H
This commit is contained in:
Claude committed 2026-11-11 13:07:05 +00:00
1 parent c37f611b33
commit ad4e865a7e
1 file changed
+2 -2
+2 -2
View File
@@ -234,7 +234,7 @@ final class GreetingRecorder: ObservableObject {
@Published private(set) var seconds = 0
private let sound = VoiceSound()
private var samples: [Float] = []
private var timer: Timer?
private var timer: Foundation.Timer?
/// the greeting's length read (0: none)
func reload() {
@@ -246,7 +246,7 @@ final class GreetingRecorder: ObservableObject {
guard !recording, sound.start(record: true, loud: true) else { return }
samples = []
recording = true
timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { [weak self] _ in
timer = Foundation.Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { [weak self] _ in
Task { @MainActor [weak self] in self?.take() }
}
}