This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set a new `value` and a the `interpolatedSignal` will emit a number of values between our current `value` and the new `value`. | |
import Foundation | |
import ReactiveKit | |
class InterpolatedFloat { | |
private let bag = DisposeBag() | |
let interpolationPeriod: TimeInterval | |
let interpolationSteps: Int | |
private var oldValue: Float = 0.0 | |
OlderNewer