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 of CALayer.

    Declaration

    Swift

    public static func frame(_ value: CGRect) -> TweenProperty
  • The bounds property of CALayer.

    Declaration

    Swift

    public static func bounds(_ value: CGRect) -> TweenProperty
  • The position property of CALayer.

    Declaration

    Swift

    public static func position(_ value: CGPoint) -> TweenProperty
  • The zPosition property of CALayer.

    Declaration

    Swift

    public static func zPosition(_ value: CGFloat) -> TweenProperty
  • The anchorPoint property of CALayer.

    Declaration

    Swift

    public static func anchorPoint(_ value: CGPoint) -> TweenProperty
  • The anchorPointZ property of CALayer.

    Declaration

    Swift

    public static func anchorPointZ(_ value: CGFloat) -> TweenProperty
  • The transform property of CALayer.

    Declaration

    Swift

    public static func transform(_ value: CATransform3D) -> TweenProperty
  • The sublayerTransform property of CALayer.

    Declaration

    Swift

    public static func sublayerTransform(_ value: CATransform3D) -> TweenProperty
  • The contentsRect property of CALayer.

    Declaration

    Swift

    public static func contentsRect(_ value: CGRect) -> TweenProperty
  • The contentsCenter property of CALayer.

    Declaration

    Swift

    public static func contentsCenter(_ value: CGRect) -> TweenProperty
  • The contentsScale property of CALayer.

    Declaration

    Swift

    @available(iOS 4.0, *)
    public static func contentsScale(_ value: CGFloat) -> TweenProperty
  • The cornerRadius property of CALayer.

    Declaration

    Swift

    public static func cornerRadius(_ value: CGFloat) -> TweenProperty
  • The borderWidth property of CALayer.

    Declaration

    Swift

    public static func borderWidth(_ value: CGFloat) -> TweenProperty
  • The borderColor property of CALayer.

    Declaration

    Swift

    public static func borderColor(_ value: UIColor) -> TweenProperty
  • The backgroundColor property of CALayer.

    Declaration

    Swift

    public static func backgroundColor(_ value: UIColor) -> TweenProperty
  • The opacity property of CALayer.

    Declaration

    Swift

    public static func opacity(_ value: Float) -> TweenProperty
  • The shadowColor property of CALayer.

    Declaration

    Swift

    public static func shadowColor(_ value: UIColor) -> TweenProperty
  • The shadowOpacity property of CALayer.

    Declaration

    Swift

    public static func shadowOpacity(_ value: Float) -> TweenProperty
  • The shadowOffset property of CALayer.

    Declaration

    Swift

    public static func shadowOffset(_ value: CGSize) -> TweenProperty
  • The shadowRadius property of CALayer.

    Declaration

    Swift

    public static func shadowRadius(_ value: CGFloat) -> TweenProperty