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 dynamic var topColor: UIColor { get set }
-
The bottom color of the gradient.
Declaration
Swift
open dynamic var bottomColor: UIColor { get set }
-
Creates a new gradient view.
Declaration
Swift
public convenience init(topColor: UIColor, bottomColor: UIColor)
Parameters
topColor
The color at the top of the view.
bottomColor
The color at the bottom of the view.