Skip to content

Commit 1153b0b

Browse files
authored
Animation and Haptics: add ViewAnimatingPosition
Add the `ViewAnimationPosition` enumeration for implementing `ViewImplicitlyAnimating`.
1 parent adfa65a commit 1153b0b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright © 2021 Saleem Abdulrasool <[email protected]>
2+
// SPDX-License-Identifier: BSD-3-Clause
3+
4+
/// Constants indicating positions within the animation.
5+
public enum ViewAnimatingPosition: Int {
6+
/// The end point of the animation. Use this constant when you want the final
7+
/// values for any animatable properties — that is, you want to refer to the
8+
/// values you specified in your animation blocks.
9+
case end
10+
11+
/// The beginning of the animation. Use this constant when you want the
12+
/// starting values for any animatable properties—that is, the values of the
13+
/// properties before you applied any animations.
14+
case start
15+
16+
/// The current position. Use this constant when you want the most recent
17+
/// value set by an animator object.
18+
case current
19+
}

0 commit comments

Comments
 (0)