init
TypeScriptstatic initNamed(name: string): (UIColor) | nullSwift declarationinit?(named name: String)class · iOS 2.0+ · SDK 27.1
class UIColorstatic initNamed(name: string): (UIColor) | nullSwift declarationinit?(named name: String)static initNamedInCompatibleWith(name: string, bundle?: (_Foundation_Bundle) | null, traitCollection?: (UITraitCollection) | null): (UIColor) | nullSwift declarationinit?(named name: String, in bundle: Bundle?, compatibleWith traitCollection: UITraitCollection?)static get black(): UIColorSwift declarationclass var black: UIColor { get }static get blue(): UIColorSwift declarationclass var blue: UIColor { get }static get brown(): UIColorSwift declarationclass var brown: UIColor { get }static get clear(): UIColorSwift declarationclass var clear: UIColor { get }static get cyan(): UIColorSwift declarationclass var cyan: UIColor { get }static get darkGray(): UIColorSwift declarationclass var darkGray: UIColor { get }static get darkText(): UIColorSwift declarationclass var darkText: UIColor { get }static get gray(): UIColorSwift declarationclass var gray: UIColor { get }static get green(): UIColorSwift declarationclass var green: UIColor { get }static get groupTableViewBackground(): UIColorSwift declarationclass var groupTableViewBackground: UIColor { get }static get label(): UIColorSwift declarationclass var label: UIColor { get }static get lightGray(): UIColorSwift declarationclass var lightGray: UIColor { get }static get lightText(): UIColorSwift declarationclass var lightText: UIColor { get }static get link(): UIColorSwift declarationclass var link: UIColor { get }static get magenta(): UIColorSwift declarationclass var magenta: UIColor { get }static get opaqueSeparator(): UIColorSwift declarationclass var opaqueSeparator: UIColor { get }static get orange(): UIColorSwift declarationclass var orange: UIColor { get }static get placeholderText(): UIColorSwift declarationclass var placeholderText: UIColor { get }static get purple(): UIColorSwift declarationclass var purple: UIColor { get }static get quaternaryLabel(): UIColorSwift declarationclass var quaternaryLabel: UIColor { get }static get quaternarySystemFill(): UIColorSwift declarationclass var quaternarySystemFill: UIColor { get }static get red(): UIColorSwift declarationclass var red: UIColor { get }static get secondaryLabel(): UIColorSwift declarationclass var secondaryLabel: UIColor { get }static get secondarySystemBackground(): UIColorSwift declarationclass var secondarySystemBackground: UIColor { get }static get secondarySystemFill(): UIColorSwift declarationclass var secondarySystemFill: UIColor { get }static get secondarySystemGroupedBackground(): UIColorSwift declarationclass var secondarySystemGroupedBackground: UIColor { get }static get separator(): UIColorSwift declarationclass var separator: UIColor { get }static get systemBackground(): UIColorSwift declarationclass var systemBackground: UIColor { get }static get systemBlue(): UIColorSwift declarationclass var systemBlue: UIColor { get }static get systemBrown(): UIColorSwift declarationclass var systemBrown: UIColor { get }static get systemCyan(): UIColorSwift declarationclass var systemCyan: UIColor { get }static get systemFill(): UIColorSwift declarationclass var systemFill: UIColor { get }static get systemGray2(): UIColorSwift declarationclass var systemGray2: UIColor { get }static get systemGray3(): UIColorSwift declarationclass var systemGray3: UIColor { get }static get systemGray4(): UIColorSwift declarationclass var systemGray4: UIColor { get }static get systemGray5(): UIColorSwift declarationclass var systemGray5: UIColor { get }static get systemGray6(): UIColorSwift declarationclass var systemGray6: UIColor { get }static get systemGray(): UIColorSwift declarationclass var systemGray: UIColor { get }static get systemGreen(): UIColorSwift declarationclass var systemGreen: UIColor { get }static get systemGroupedBackground(): UIColorSwift declarationclass var systemGroupedBackground: UIColor { get }static get systemIndigo(): UIColorSwift declarationclass var systemIndigo: UIColor { get }static get systemMint(): UIColorSwift declarationclass var systemMint: UIColor { get }static get systemOrange(): UIColorSwift declarationclass var systemOrange: UIColor { get }static get systemPink(): UIColorSwift declarationclass var systemPink: UIColor { get }static get systemPurple(): UIColorSwift declarationclass var systemPurple: UIColor { get }static get systemRed(): UIColorSwift declarationclass var systemRed: UIColor { get }static get systemTeal(): UIColorSwift declarationclass var systemTeal: UIColor { get }static get systemYellow(): UIColorSwift declarationclass var systemYellow: UIColor { get }static get tertiaryLabel(): UIColorSwift declarationclass var tertiaryLabel: UIColor { get }static get tertiarySystemBackground(): UIColorSwift declarationclass var tertiarySystemBackground: UIColor { get }static get tertiarySystemFill(): UIColorSwift declarationclass var tertiarySystemFill: UIColor { get }static get tertiarySystemGroupedBackground(): UIColorSwift declarationclass var tertiarySystemGroupedBackground: UIColor { get }static get tintColor(): UIColorSwift declarationclass var tintColor: UIColor { get }static get white(): UIColorSwift declarationclass var white: UIColor { get }static get yellow(): UIColorSwift declarationclass var yellow: UIColor { get }applyingContentHeadroom(contentHeadroom: number): UIColorSwift declarationfunc applyingContentHeadroom(_ contentHeadroom: CGFloat) -> UIColorwithAlphaComponent(alpha: number): UIColorSwift declarationfunc withAlphaComponent(_ alpha: CGFloat) -> UIColorwithProminence(prominence: UIColor_Prominence): UIColorSwift declarationfunc withProminence(_ prominence: UIColor.Prominence) -> UIColorgetHue(hue?: ("animatableData" | SDKHandle) | null, saturation?: ("animatableData" | SDKHandle) | null, brightness?: ("animatableData" | SDKHandle) | null, alpha?: ("animatableData" | SDKHandle) | null): booleanSwift declarationfunc getHue(_ hue: UnsafeMutablePointer<CGFloat>?, saturation: UnsafeMutablePointer<CGFloat>?, brightness: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> BoolgetRed(red?: ("animatableData" | SDKHandle) | null, green?: ("animatableData" | SDKHandle) | null, blue?: ("animatableData" | SDKHandle) | null, alpha?: ("animatableData" | SDKHandle) | null): booleanSwift declarationfunc getRed(_ red: UnsafeMutablePointer<CGFloat>?, green: UnsafeMutablePointer<CGFloat>?, blue: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> BoolgetWhite(white?: ("animatableData" | SDKHandle) | null, alpha?: ("animatableData" | SDKHandle) | null): booleanSwift declarationfunc getWhite(_ white: UnsafeMutablePointer<CGFloat>?, alpha: UnsafeMutablePointer<CGFloat>?) -> Boolstatic initCgColor(cgColor: _CoreGraphics_CGColor): UIColorSwift declarationinit(cgColor: CGColor)static initCiColor(ciColor: _CoreImage_CIColor): UIColorSwift declarationinit(ciColor: CIColor)static initDisplayP3RedGreenBlueAlpha(displayP3Red: number, green: number, blue: number, alpha: number): UIColorSwift declarationinit(displayP3Red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)static initHueSaturationBrightnessAlpha(hue: number, saturation: number, brightness: number, alpha: number): UIColorSwift declarationinit(hue: CGFloat, saturation: CGFloat, brightness: CGFloat, alpha: CGFloat)static initPatternImage(image: UIImage): UIColorSwift declarationinit(patternImage image: UIImage)static initRedGreenBlueAlpha(red: number, green: number, blue: number, alpha: number): UIColorSwift declarationinit(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)static initRedGreenBlueAlphaExposure(red: number, green: number, blue: number, alpha: number, exposure: number): UIColorSwift declarationinit(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat, exposure: CGFloat)static initRedGreenBlueAlphaLinearExposure(red: number, green: number, blue: number, alpha: number, linearExposure: number): UIColorSwift declarationinit(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat, linearExposure: CGFloat)static initWhiteAlpha(white: number, alpha: number): UIColorSwift declarationinit(white: CGFloat, alpha: CGFloat)resolvedColor(traitCollection: UITraitCollection): UIColorSwift declarationfunc resolvedColor(with traitCollection: UITraitCollection) -> UIColorset(): voidSwift declarationfunc set()setFill(): voidSwift declarationfunc setFill()setStroke(): voidSwift declarationfunc setStroke()get cgColor(): _CoreGraphics_CGColorSwift declarationvar cgColor: CGColor { get }get ciColor(): _CoreImage_CIColorSwift declarationvar ciColor: CIColor { get }get accessibilityName(): stringSwift declarationvar accessibilityName: String { get }get linearExposure(): numberSwift declarationvar linearExposure: CGFloat { get }get prominence(): UIColor_ProminenceSwift declarationvar prominence: UIColor.Prominence { get }get standardDynamicRange(): UIColorSwift declaration@NSCopying var standardDynamicRange: UIColor { get }static initResource(resource: _DeveloperToolsSupport_ColorResource): UIColorSwift declarationconvenience init(resource: ColorResource)2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
UIColor.init(dynamicProvider:)
callback cannot propagate synchronous failure
UIColor.init()
inherited init: cannot prove legal (class declares 18 custom initializers)