Kordophone client for iOS and macOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
294 B

import Foundation
class IntervalUpdater : ObservableObject {
@Published var seed = 0
init(_ interval: TimeInterval) {
Timer.scheduledTimer(withTimeInterval: interval,
repeats: true) { [weak self] _ in
self?.seed += 1
}
}
}