UIKit.UIImage

extension UIKit.UIImage
  • _18

    The “18” asset catalog image.

    Declaration

    Swift

    static var _18: UIKit.UIImage { get }
  • The “AboutLogo” asset catalog image.

    Declaration

    Swift

    static var aboutLogo: UIKit.UIImage { get }
  • The “Background-Gradient” asset catalog image.

    Declaration

    Swift

    static var backgroundGradient: UIKit.UIImage { get }
  • C

    The “C” asset catalog image.

    Declaration

    Swift

    static var C: UIKit.UIImage { get }
  • The “CenterImage” asset catalog image.

    Declaration

    Swift

    static var center: UIKit.UIImage { get }
  • The “CoinBlank” asset catalog image.

    Declaration

    Swift

    static var coinBlank: UIKit.UIImage { get }
  • D

    The “D” asset catalog image.

    Declaration

    Swift

    static var D: UIKit.UIImage { get }
  • I

    The “I” asset catalog image.

    Declaration

    Swift

    static var I: UIKit.UIImage { get }
  • The “Infinity” asset catalog image.

    Declaration

    Swift

    static var _infinity: UIKit.UIImage { get }
  • L

    The “L” asset catalog image.

    Declaration

    Swift

    static var L: UIKit.UIImage { get }
  • The “Logo” asset catalog image.

    Declaration

    Swift

    static var logo: UIKit.UIImage { get }
  • M

    The “M” asset catalog image.

    Declaration

    Swift

    static var M: UIKit.UIImage { get }
  • The “SingleKeytag” asset catalog image.

    Declaration

    Swift

    static var singleKeytag: UIKit.UIImage { get }
  • The “StartupLogo” asset catalog image.

    Declaration

    Swift

    static var startupLogo: UIKit.UIImage { get }
  • The “ThreeKeytags” asset catalog image.

    Declaration

    Swift

    static var threeKeytags: UIKit.UIImage { get }
  • V

    The “V” asset catalog image.

    Declaration

    Swift

    static var V: UIKit.UIImage { get }
  • X

    The “X” asset catalog image.

    Declaration

    Swift

    static var X: UIKit.UIImage { get }
  • The “body_Black” asset catalog image.

    Declaration

    Swift

    static var bodyBlack: UIKit.UIImage { get }
  • The “body_Blue” asset catalog image.

    Declaration

    Swift

    static var bodyBlue: UIKit.UIImage { get }
  • The “body_BurntOrange” asset catalog image.

    Declaration

    Swift

    static var bodyBurntOrange: UIKit.UIImage { get }
  • The “body_DaygloGreen” asset catalog image.

    Declaration

    Swift

    static var bodyDaygloGreen: UIKit.UIImage { get }
  • The “body_DaygloOrange” asset catalog image.

    Declaration

    Swift

    static var bodyDaygloOrange: UIKit.UIImage { get }
  • The “body_Gray” asset catalog image.

    Declaration

    Swift

    static var bodyGray: UIKit.UIImage { get }
  • The “body_HotPink” asset catalog image.

    Declaration

    Swift

    static var bodyHotPink: UIKit.UIImage { get }
  • The “body_HunterGreen” asset catalog image.

    Declaration

    Swift

    static var bodyHunterGreen: UIKit.UIImage { get }
  • The “body_Moonglow” asset catalog image.

    Declaration

    Swift

    static var bodyMoonglow: UIKit.UIImage { get }
  • The “body_Purple” asset catalog image.

    Declaration

    Swift

    static var bodyPurple: UIKit.UIImage { get }
  • The “body_Red” asset catalog image.

    Declaration

    Swift

    static var bodyRed: UIKit.UIImage { get }
  • The “body_Speckled” asset catalog image.

    Declaration

    Swift

    static var bodySpeckled: UIKit.UIImage { get }
  • The “body_White” asset catalog image.

    Declaration

    Swift

    static var bodyWhite: UIKit.UIImage { get }
  • The “body_Yellow” asset catalog image.

    Declaration

    Swift

    static var bodyYellow: UIKit.UIImage { get }
  • The “ring_Closed” asset catalog image.

    Declaration

    Swift

    static var ringClosed: UIKit.UIImage { get }
  • The “ring_Open” asset catalog image.

    Declaration

    Swift

    static var ringOpen: UIKit.UIImage { get }
  • The “text_EighteenMonths” asset catalog image.

    Declaration

    Swift

    static var textEighteenMonths: UIKit.UIImage { get }
  • The “text_FifteenYears” asset catalog image.

    Declaration

    Swift

    static var textFifteenYears: UIKit.UIImage { get }
  • The “text_FiftyYears” asset catalog image.

    Declaration

    Swift

    static var textFiftyYears: UIKit.UIImage { get }
  • The “text_FiveYears” asset catalog image.

    Declaration

    Swift

    static var textFiveYears: UIKit.UIImage { get }
  • The “text_FortyFiveYears” asset catalog image.

    Declaration

    Swift

    static var textFortyFiveYears: UIKit.UIImage { get }
  • The “text_FortyYears” asset catalog image.

    Declaration

    Swift

    static var textFortyYears: UIKit.UIImage { get }
  • The “text_MultiYear” asset catalog image.

    Declaration

    Swift

    static var textMultiYear: UIKit.UIImage { get }
  • The “text_NineMonths” asset catalog image.

    Declaration

    Swift

    static var textNineMonths: UIKit.UIImage { get }
  • The “text_NinetyDays” asset catalog image.

    Declaration

    Swift

    static var textNinetyDays: UIKit.UIImage { get }
  • The “text_OneDay” asset catalog image.

    Declaration

    Swift

    static var textOneDay: UIKit.UIImage { get }
  • The “text_OneYear” asset catalog image.

    Declaration

    Swift

    static var textOneYear: UIKit.UIImage { get }
  • The “text_SixMonths” asset catalog image.

    Declaration

    Swift

    static var textSixMonths: UIKit.UIImage { get }
  • The “text_SixtyDays” asset catalog image.

    Declaration

    Swift

    static var textSixtyDays: UIKit.UIImage { get }
  • The “text_TenThousandDays” asset catalog image.

    Declaration

    Swift

    static var textTenThousandDays: UIKit.UIImage { get }
  • The “text_TenYears” asset catalog image.

    Declaration

    Swift

    static var textTenYears: UIKit.UIImage { get }
  • The “text_ThirtyDays” asset catalog image.

    Declaration

    Swift

    static var textThirtyDays: UIKit.UIImage { get }
  • The “text_ThirtyFiveYears” asset catalog image.

    Declaration

    Swift

    static var textThirtyFiveYears: UIKit.UIImage { get }
  • The “text_ThirtyYears” asset catalog image.

    Declaration

    Swift

    static var textThirtyYears: UIKit.UIImage { get }
  • The “text_TwentyFiveYears” asset catalog image.

    Declaration

    Swift

    static var textTwentyFiveYears: UIKit.UIImage { get }
  • The “text_TwentyYears” asset catalog image.

    Declaration

    Swift

    static var textTwentyYears: UIKit.UIImage { get }
  • The “text_WelcomeBack” asset catalog image.

    Declaration

    Swift

    static var textWelcomeBack: UIKit.UIImage { get }

Thinnable Asset Support

Backwards Deployment Support

UIImage Extension

  • This is a “cascading” image fetcher. It first, sees if there is an asset with the name given, then, it looks in the SFSymbols, finally, returning the SFSymbols.nosign, if none found.

    Declaration

    Swift

    class func assetOrSystemImage(name inName: String) -> UIImage?

    Parameters

    name

    The name of the resource.

    Return Value

    A new image. May be nil, if none found.

  • This returns the RGB color (as a UIColor) of the pixel in the image, at the given point. It is restricted to 32-bit (RGBA/8-bit pixel) values. This was inspired by several of the answers in this StackOverflow Question. NOTE: This is unlikely to be highly performant!

    Declaration

    Swift

    func getRGBColorOfThePixel(at inPoint: CGPoint) -> UIColor?

    Parameters

    at

    The point in the image to sample (NOTE: Must be within image bounds, or nil is returned).

    Return Value

    A UIColor (or nil).

  • This allows an image to be resized, given a maximum dimension, and a scale will be determined to meet that dimension. If the image is currently smaller than the maximum size, it will not be scaled.

    Declaration

    Swift

    func resized(toMaximumSize: CGFloat) -> UIImage?

    Parameters

    toMaximumSize

    The maximum size, in either the X or Y axis, of the image, in pixels.

    Return Value

    A new image, with the given dimensions. May be nil, if there was an error.

  • This allows an image to be resized, given a maximum dimension, and a scale will be determined to meet that dimension.

    Declaration

    Swift

    func resized(toScaleFactor inScaleFactor: CGFloat) -> UIImage?

    Parameters

    toScaleFactor

    The scale of the resulting image, as a multiplier of the current size.

    Return Value

    A new image, with the given scale. May be nil, if there was an error.

  • This allows an image to be resized, given both a width and a height, or just one of the dimensions.

    Declaration

    Swift

    func resized(toNewWidth inNewWidth: CGFloat? = nil, toNewHeight inNewHeight: CGFloat? = nil) -> UIImage?

    Parameters

    toNewWidth

    The width (in pixels) of the desired image. If not provided, a scale will be determined from the toNewHeight parameter.

    toNewHeight

    The height (in pixels) of the desired image. If not provided, a scale will be determined from the toNewWidth parameter.

    Return Value

    A new image, with the given dimensions. May be nil, if no width or height was supplied, or if there was an error.