Documentation Archive Developer
Search

CoreGraphics Changes for Swift

CoreGraphics

Removed CGGlypDeprecatedEnum [enum]
Added CGColorConverterTransformType [enum]
Added CGColorConverterTransformType.ApplySpace
Added CGColorConverterTransformType.FromSpace
Added CGColorConverterTransformType.ToSpace
Added CGColorConverterCreateSimple(_: CGColorSpace?, _: CGColorSpace?) -> CGColorConverterRef
Added CGColorConverterGetTypeID() -> CFTypeID
Added CGColorConverterRef
Added CGColorConverterRelease(_: CGColorConverterRef)
Declaration
From
struct CGBitmapInfo : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var AlphaInfoMask: CGBitmapInfo { get }
    static var FloatComponents: CGBitmapInfo { get }
    static var ByteOrderMask: CGBitmapInfo { get }
    static var ByteOrderDefault: CGBitmapInfo { get }
    static var ByteOrder16Little: CGBitmapInfo { get }
    static var ByteOrder32Little: CGBitmapInfo { get }
    static var ByteOrder16Big: CGBitmapInfo { get }
    static var ByteOrder32Big: CGBitmapInfo { get }
}
To
struct CGBitmapInfo : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var AlphaInfoMask: CGBitmapInfo { get }
    static var FloatInfoMask: CGBitmapInfo { get }
    static var FloatComponents: CGBitmapInfo { get }
    static var ByteOrderMask: CGBitmapInfo { get }
    static var ByteOrderDefault: CGBitmapInfo { get }
    static var ByteOrder16Little: CGBitmapInfo { get }
    static var ByteOrder32Little: CGBitmapInfo { get }
    static var ByteOrder16Big: CGBitmapInfo { get }
    static var ByteOrder32Big: CGBitmapInfo { get }
}

Modified CGColor
NameDeclaration
FromCGColorRef
typealias CGColorRef = CGColor
ToCGColor
class CGColor {
}

Modified CGColorSpace
NameDeclaration
FromCGColorSpaceRef
typealias CGColorSpaceRef = CGColorSpace
ToCGColorSpace
class CGColorSpace {
}

Modified CGContext
NameDeclaration
FromCGContextRef
typealias CGContextRef = CGContext
ToCGContext
class CGContext {
}

NameDeclaration
FromCGDataConsumerRef
typealias CGDataConsumerRef = CGDataConsumer
ToCGDataConsumer
class CGDataConsumer {
}

NameDeclaration
FromCGDataProviderRef
typealias CGDataProviderRef = CGDataProvider
ToCGDataProvider
class CGDataProvider {
}

Modified CGFont
NameDeclaration
FromCGFontRef
typealias CGFontRef = CGFont
ToCGFont
class CGFont {
}

Modified CGFunction
NameDeclaration
FromCGFunctionRef
typealias CGFunctionRef = CGFunction
ToCGFunction
class CGFunction {
}

Modified CGGradient
NameDeclaration
FromCGGradientRef
typealias CGGradientRef = CGGradient
ToCGGradient
class CGGradient {
}

Modified CGImage
NameDeclaration
FromCGImageRef
typealias CGImageRef = CGImage
ToCGImage
class CGImage {
}

Modified CGLayer
NameDeclaration
FromCGLayerRef
typealias CGLayerRef = CGLayer
ToCGLayer
class CGLayer {
}

Modified CGMutablePath
NameDeclaration
FromCGMutablePathRef
typealias CGMutablePathRef = CGMutablePath
ToCGMutablePath
class CGMutablePath {
}

Modified CGPath
NameDeclaration
FromCGPathRef
typealias CGPathRef = CGPath
ToCGPath
class CGPath {
}

Modified CGPattern
NameDeclaration
FromCGPatternRef
typealias CGPatternRef = CGPattern
ToCGPattern
class CGPattern {
}

Modified CGPDFDocument
NameDeclaration
FromCGPDFDocumentRef
typealias CGPDFDocumentRef = CGPDFDocument
ToCGPDFDocument
class CGPDFDocument {
}

Modified CGPDFPage
NameDeclaration
FromCGPDFPageRef
typealias CGPDFPageRef = CGPDFPage
ToCGPDFPage
class CGPDFPage {
}

Modified CGShading
NameDeclaration
FromCGShadingRef
typealias CGShadingRef = CGShading
ToCGShading
class CGShading {
}

Introduction
FromiOS 8.0
ToiOS 9.0

Introduction
FromiOS 8.0
ToiOS 9.0

Introduction
FromiOS 8.0
ToiOS 9.0

Introduction
FromiOS 8.0
ToiOS 9.0