Skip to content

Commit

Permalink
allow value provider to be passed to animationView of AnimatedControl
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Pham committed Apr 10, 2019
1 parent 71e5f19 commit d5f1ae0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lottie-swift/src/Public/iOS/AnimatedControl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ open class AnimatedControl: UIControl {
stateMap[forState.rawValue] = named
updateForState()
}

/// Sets a ValueProvider for the specified keypath
public func setValueProvider(_ valueProvider: AnyValueProvider, keypath: AnimationKeypath) {
animationView.setValueProvider(valueProvider, keypath: keypath)
}

// MARK: Initializers

Expand Down

0 comments on commit d5f1ae0

Please sign in to comment.