UIImage
public extension UIImage
A HyperwalletUI extension to UIImage.
-
Get an icon image with the given icon name, text color, size and background color
Declaration
Swift
static func fontIcon(_ name: String, _ iconSize: CGSize, _ fontSize: CGFloat, _ textColor: UIColor) -> UIImageParameters
nameThe preferred
HyperwalletIconContent.iconSizeThe image size
fontSizeThe font size of the icon
textColorThe text color (optional).
Return Value
A string that will appear as icon
-
Create Background Pattern
Declaration
Swift
static func createBackgroundPattern(color: UIColor, size: CGSize, cornerRadius: Int) -> UIImageParameters
colorUIColor
sizeCGSize
cornerRadiusInt
Return Value
UIImage
-
Get an icon image with the given icon name, text color, size and background color
Declaration
Swift
static func fontIcon(_ name: String, _ iconSize: CGSize, _ fontSize: CGFloat, _ textColor: UIColor) -> UIImageParameters
nameThe preferred
HyperwalletIconContent.iconSizeThe image size
fontSizeThe font size of the icon
textColorThe text color (optional).
Return Value
A string that will appear as icon
-
Create Background Pattern
Declaration
Swift
static func createBackgroundPattern(color: UIColor, size: CGSize, cornerRadius: Int) -> UIImageParameters
colorUIColor
sizeCGSize
cornerRadiusInt
Return Value
UIImage
View on GitHub