UIImage
public extension UIImage
                  A SAP Icon extension to UIImage.
- 
                    
                    
Get a SAP Icon image with the given url, size and icon color.
Declaration
Swift
static func fromIconUrl(url: String, size: CGSize = CGSize(width: 50, height: 50), color: UIColor?) -> UIImage?Parameters
urlThe image url.
sizeThe image size.
colorThe icon color.
Return Value
An image that will appear as icon with SAP Icon
 - 
                    
                    
Get a SAP Icon image with the given icon name, text color, size and an optional background color.
Declaration
Swift
static func fromIcon(_ name: SAPIcon, _ textColor: UIColor, _ size: CGSize, _ backgroundColor: UIColor = UIColor.clear) -> UIImageParameters
nameThe preferred icon name.
textColorThe text color.
sizeThe image size.
backgroundColorThe background color (optional).
Return Value
An image that will appear as icon with SAP Icon
 - 
                    
                    
Get a SAP Icon image with the given icon css code, text color, size and an optional background color.
Declaration
Swift
static func fromIconFont(_ fontName: SAPFontName, _ code: String, _ textColor: UIColor, _ size: CGSize, _ backgroundColor: UIColor = UIColor.clear) -> UIImage?Parameters
fontNameSAP font name.
codeThe preferred icon css code.
textColorThe text color.
sizeThe image size.
backgroundColorThe background color (optional).
Return Value
An image that will appear as icon with SAP Icon