UIImage

class UIImage : NSObject, NSSecureCoding
  • Create template image.

    Declaration

    Swift

    static func template(named: String, bundle: Bundle = Bundle.main) -> UIImage?

    Parameters

    named

    name of image.

    bundle

    bundle which contains image.

    Return Value

    a template image.

  • Create template image with color.

    Declaration

    Swift

    static func template(named: String, bundle: Bundle = Bundle.main, tintColor: UIColor) -> UIImage?

    Parameters

    named

    name of image.

    bundle

    bundle which contains image.

    tintColor

    tintColor

    Return Value

    a template image.