GradientView

@objcMembers
@objc(PESDKGradientView)
open class GradientView : UIView

A GradientView shows a linear gradient from its top to its bottom.

  • The top color of the gradient.

    Declaration

    Swift

    open let topColor: UIColor
  • The bottom color of the gradient.

    Declaration

    Swift

    open let bottomColor: UIColor
  • Creates a new gradient view.

    Declaration

    Swift

    public init(topColor: UIColor, bottomColor: UIColor)

    Parameters

    topColor

    The color at the top of the view.

    bottomColor

    The color at the bottom of the view.