From ad4e865a7e3937bfc4de13f685b544b994936cdc Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 11 Nov 2026 13:07:05 +0000 Subject: [PATCH] iOS: the greeting's timer is Foundation's (the shared Kotlin has a Timer too) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B82eRTvbHMpudRfQWK4c4H --- ios/DModem/Sources/PhoneView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/DModem/Sources/PhoneView.swift b/ios/DModem/Sources/PhoneView.swift index d5fa21d..78a8dc3 100644 --- a/ios/DModem/Sources/PhoneView.swift +++ b/ios/DModem/Sources/PhoneView.swift @@ -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() } } }