TweenProperty
public struct TweenProperty : TweenableProperty
The properties of CALayer
that can be animated with a tween.
-
Declaration
Swift
public let animation: (CALayer) -> Tween.Animation
-
The
frame
property ofCALayer
.Declaration
Swift
public static func frame(_ value: CGRect) -> TweenProperty
-
The
bounds
property ofCALayer
.Declaration
Swift
public static func bounds(_ value: CGRect) -> TweenProperty
-
The
position
property ofCALayer
.Declaration
Swift
public static func position(_ value: CGPoint) -> TweenProperty
-
The
zPosition
property ofCALayer
.Declaration
Swift
public static func zPosition(_ value: CGFloat) -> TweenProperty
-
The
anchorPoint
property ofCALayer
.Declaration
Swift
public static func anchorPoint(_ value: CGPoint) -> TweenProperty
-
The
anchorPointZ
property ofCALayer
.Declaration
Swift
public static func anchorPointZ(_ value: CGFloat) -> TweenProperty
-
The
transform
property ofCALayer
.Declaration
Swift
public static func transform(_ value: CATransform3D) -> TweenProperty
-
The
sublayerTransform
property ofCALayer
.Declaration
Swift
public static func sublayerTransform(_ value: CATransform3D) -> TweenProperty
-
The
contentsRect
property ofCALayer
.Declaration
Swift
public static func contentsRect(_ value: CGRect) -> TweenProperty
-
The
contentsCenter
property ofCALayer
.Declaration
Swift
public static func contentsCenter(_ value: CGRect) -> TweenProperty
-
The
contentsScale
property ofCALayer
.Declaration
Swift
@available(iOS 4.0, *) public static func contentsScale(_ value: CGFloat) -> TweenProperty
-
The
cornerRadius
property ofCALayer
.Declaration
Swift
public static func cornerRadius(_ value: CGFloat) -> TweenProperty
-
The
borderWidth
property ofCALayer
.Declaration
Swift
public static func borderWidth(_ value: CGFloat) -> TweenProperty
-
The
borderColor
property ofCALayer
.Declaration
Swift
public static func borderColor(_ value: UIColor) -> TweenProperty
-
The
backgroundColor
property ofCALayer
.Declaration
Swift
public static func backgroundColor(_ value: UIColor) -> TweenProperty
-
The
opacity
property ofCALayer
.Declaration
Swift
public static func opacity(_ value: Float) -> TweenProperty
-
The
shadowColor
property ofCALayer
.Declaration
Swift
public static func shadowColor(_ value: UIColor) -> TweenProperty
-
The
shadowOpacity
property ofCALayer
.Declaration
Swift
public static func shadowOpacity(_ value: Float) -> TweenProperty
-
The
shadowOffset
property ofCALayer
.Declaration
Swift
public static func shadowOffset(_ value: CGSize) -> TweenProperty
-
The
shadowRadius
property ofCALayer
.Declaration
Swift
public static func shadowRadius(_ value: CGFloat) -> TweenProperty