blob: 4a7b1437ec6a0bb25c883bf2ebde59eeeae7eb2f [file] [log] [blame]
class StateAnimatorGroup<State> {
func add<T: StateAnimator>(_ animator: T) where T.State == State {}
func set(_ state: State) {}
}
extension StateAnimatorGroup: StateAnimator where State == String {}
protocol StateAnimator {
associatedtype State
func set(_ state: State)
}