GradientView
@IBDesignable
final class GradientView : UIView
                View that contains a gradient
- 
                  
                  
Gradient starting color
Declaration
Swift
@IBInspectable var startColor: UIColor { get set } - 
                  
                  
Gradient ending color
Declaration
Swift
@IBInspectable var endColor: UIColor { get set } - 
                  
                  
Gradient orientation
Declaration
Swift
@IBInspectable var orientation: Int { get set } - 
                  
                  
Simple gradient setter
Declaration
Swift
func set(gradient colors: [UIColor], orientation direction: GradientOrientation)Parameters
colorsColor array
directionGradientOrientation
 - 
                  
                  
Procedural intializer
Declaration
Swift
override init(frame: CGRect)Parameters
frameDisplay frame
 - 
                  
                  
Update screen rendering
Declaration
Swift
override func layoutSublayers(of layer: CALayer)Parameters
layerOur layer
 - 
                  
                  
Set predefined style
Declaration
Swift
func set(style: Styler)Parameters
styleStyle definition
 
            View on GitHub
          
      GradientView Class Reference