MotionObservable specification
This is the engineering specification for the MotionObservable
object.
Overview
MotionObservable
is a specialization of IndefiniteObservable
.
The purpose of this specialization is to provide a canonical scope for building motion-related operators.
MVP
Expose a MotionObserver API
Provide a class for creating a motion observer using inline functions.
public final class MotionObserver<T> {
public typealias Value = T
public init(_ next: (T) -> Void) {
self.next = next
}
public let next: (T) -> Void
}
Subclass IndefiniteObservable
public class MotionObservable<T>: IndefiniteObservable<MotionObserver<T>> {
}