QuoteImage
public struct QuoteImage
Defines a custom Quote image, can be a square UIImage, solid UIColor or CAGradientLayer.
-
Declaration
Swift
public var image: UIImage! -
Declaration
Swift
public var alpha: CGFloat! -
Declaration
Swift
public var textColor: UIColor! -
Declaration
Swift
public var backgroundColor: UIColor! -
Quote image from
UIImageDeclaration
Swift
public init(withImage image: UIImage, alpha: CGFloat = 1, textColor: UIColor = UIColor.white, backgroundColor: UIColor = UIColor.white)Parameters
imageAn
UIImageto be used as background.alphaThe image opacity. Defaults to 1.
textColorThe color of quote text and custom logo. Defaults to white.
backgroundColorThe filter background color, if the image has a opacity this will appear. Defaults to white.
Return Value
A newly initialized
QuoteImageobject. -
Quote image from
CAGradientLayerDeclaration
Swift
public init(withGradient gradient: CAGradientLayer, alpha: CGFloat = 1, textColor: UIColor = UIColor.white, backgroundColor: UIColor = UIColor.white)Parameters
gradientA custom
CAGradientLayerto make a gradient background.alphaThe image opacity. Defaults to 1.
textColorThe color of quote text and custom logo. Defaults to white.
backgroundColorThe filter background color, if the image has a opacity this will appear. Defaults to white.
Return Value
A newly initialized
QuoteImageobject. -
Quote image from
UIColorDeclaration
Swift
public init(withColor color: UIColor, alpha: CGFloat = 1, textColor: UIColor = UIColor.white, backgroundColor: UIColor = UIColor.white)Parameters
colorA custom
UIColoralphaThe image opacity. Defaults to 1.
textColorThe color of quote text and custom logo. Defaults to white.
backgroundColorThe filter background color, if the image has a opacity this will appear. Defaults to white.
Return Value
A newly initialized
QuoteImageobject.
View on GitHub
Install in Dash
QuoteImage Structure Reference