Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Clarify when completion is invoked in the docs. #82

Merged
merged 2 commits into from
Nov 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/MDMMotionAnimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ NS_SWIFT_NAME(MotionAnimator)
UIKit types will be coerced to their Core Animation equivalent. Supported UIKit values include
UIColor and UIBezierPath.
@param keyPath The key path of the property to be animated.
@param completion The completion handler will be executed once this animation has come to rest.
@param completion A block object to be executed when the animation ends or is removed from the
animation hierarchy. If the duration of the animation is 0, this block is executed immediately.
The block is escaping and will be released once the animations have completed.
*/
- (void)animateWithTiming:(MDMMotionTiming)timing
toLayer:(nonnull CALayer *)layer
Expand All @@ -127,8 +129,9 @@ NS_SWIFT_NAME(MotionAnimator)
@param animations The block to be executed. Any animatable properties changed within this block
will result in animations being added to the view's layer with the provided timing. The block is
non-escaping.
@param completion The completion handler will be executed once all added animations have come to
rest. The block is escaping and will be released once the animations have completed.
@param completion A block object to be executed once the animation sequence ends or it has been
removed from the animation hierarchy. If the duration of the animation is 0, this block is executed
immediately. The block is escaping and will be released once the animation sequence has completed.
*/
- (void)animateWithTiming:(MDMMotionTiming)timing
animations:(nonnull void (^)(void))animations
Expand Down