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

Commit

Permalink
Standardize our param docs formatting. (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey authored Dec 14, 2017
1 parent e41ccb4 commit 024296a
Showing 1 changed file with 38 additions and 27 deletions.
65 changes: 38 additions & 27 deletions src/MDMMotionAnimator.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,14 @@ NS_SWIFT_NAME(MotionAnimator)
In this case, multiple invocations of this function on the same key path will remove the
animations added from prior invocations.
@param traits The traits to be used for the animation.
@param layer The layer to be animated.
@param values The values to be used in the animation. Must contain exactly two values. Supported
UIKit types will be coerced to their Core Animation equivalent. Supported UIKit values include
UIColor and UIBezierPath.
@param traits The traits to be used for the animation.
@param layer The layer to be animated.
@param values The values to be used in the animation. Must contain exactly two values. Supported
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.
*/
- (void)animateWithTraits:(nonnull MDMAnimationTraits *)traits
Expand All @@ -90,16 +93,20 @@ NS_SWIFT_NAME(MotionAnimator)
In this case, multiple invocations of this function on the same key path will remove the
animations added from prior invocations.
@param traits The traits to be used for the animation.
@param layer The layer to be animated.
@param values The values to be used in the animation. Must contain exactly two values. Supported
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 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. The provided
`finished` argument is currently always YES.
@param traits The traits to be used for the animation.
@param layer The layer to be animated.
@param values The values to be used in the animation. Must contain exactly two values.
Supported UIKit types will be coerced to their Core Animation equivalent.
@param keyPath The key path of the property to be animated.
@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. The provided `finished` argument is currently always
YES.
*/
- (void)animateWithTraits:(nonnull MDMAnimationTraits *)traits
between:(nonnull NSArray *)values
Expand All @@ -121,10 +128,11 @@ NS_SWIFT_NAME(MotionAnimator)
/**
Performs `animations` using the traits provided.
@param traits The traits to be used for the animation.
@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 traits. The block is
non-escaping.
@param traits The traits to be used for the animation.
@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
traits. The block is non-escaping.
*/
- (void)animateWithTraits:(nonnull MDMAnimationTraits *)traits
animations:(nonnull void(^)(void))animations;
Expand All @@ -133,14 +141,17 @@ NS_SWIFT_NAME(MotionAnimator)
Performs `animations` using the traits provided and executes the completion handler once all added
animations have completed.
@param traits The traits to be used for the animation.
@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 traits. The block is
non-escaping.
@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.
The provided `finished` argument is currently always YES.
@param traits The traits to be used for the animation.
@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
traits. The block is non-escaping.
@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. The provided `finished` argument is
currently always YES.
*/
- (void)animateWithTraits:(nonnull MDMAnimationTraits *)traits
animations:(nonnull void (^)(void))animations
Expand Down

0 comments on commit 024296a

Please sign in to comment.