Guides and Sample Code Developer
Search

CoreFoundation Changes for Swift

CoreFoundation

Declaration
From
struct CFBinaryHeapCallBacks {
    var version: CFIndex
    var retain: ((CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((CFAllocator?, UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    var compare: ((UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> CFComparisonResult)!
    init()
    init(version version: CFIndex, retain retain: (@escaping (CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (CFAllocator?, UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!, compare compare: (@escaping (UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> CFComparisonResult)!)
}
To
struct CFBinaryHeapCallBacks {
    var version: CFIndex
    var retain: ((CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((CFAllocator?, UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    var compare: ((UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> CFComparisonResult)!
    init()
    init(version version: CFIndex, retain retain: ((CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((CFAllocator?, UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!, compare compare: ((UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> CFComparisonResult)!)
}

Declaration
From
init(version version: CFIndex, retain retain: (@escaping (CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (CFAllocator?, UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!, compare compare: (@escaping (UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> CFComparisonResult)!)
To
init(version version: CFIndex, retain retain: ((CFAllocator?, UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((CFAllocator?, UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!, compare compare: ((UnsafeRawPointer?, UnsafeRawPointer?, UnsafeMutableRawPointer?) -> CFComparisonResult)!)

Declaration
From
struct CFBinaryHeapCompareContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFBinaryHeapCompareContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
struct CFFileDescriptorContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!
    var release: ((UnsafeMutableRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: (@escaping (UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFFileDescriptorContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!
    var release: ((UnsafeMutableRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: ((UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: (@escaping (UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: ((UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
struct CFMachPortContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFMachPortContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
struct CFMessagePortContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFMessagePortContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
struct CFRunLoopObserverContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFRunLoopObserverContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
struct CFRunLoopSourceContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    var equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!
    var hash: ((UnsafeRawPointer?) -> CFHashCode)!
    var schedule: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!
    var cancel: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!
    var perform: ((UnsafeMutableRawPointer?) -> Swift.Void)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: (@escaping (UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: (@escaping (UnsafeRawPointer?) -> CFHashCode)!, schedule schedule: (@escaping (UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, cancel cancel: (@escaping (UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, perform perform: (@escaping (UnsafeMutableRawPointer?) -> Swift.Void)!)
}
To
struct CFRunLoopSourceContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    var equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!
    var hash: ((UnsafeRawPointer?) -> CFHashCode)!
    var schedule: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!
    var cancel: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!
    var perform: ((UnsafeMutableRawPointer?) -> Swift.Void)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: ((UnsafeRawPointer?) -> CFHashCode)!, schedule schedule: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, cancel cancel: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, perform perform: ((UnsafeMutableRawPointer?) -> Swift.Void)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: (@escaping (UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: (@escaping (UnsafeRawPointer?) -> CFHashCode)!, schedule schedule: (@escaping (UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, cancel cancel: (@escaping (UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, perform perform: (@escaping (UnsafeMutableRawPointer?) -> Swift.Void)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: ((UnsafeRawPointer?) -> CFHashCode)!, schedule schedule: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, cancel cancel: ((UnsafeMutableRawPointer?, CFRunLoop?, CFRunLoopMode?) -> Swift.Void)!, perform perform: ((UnsafeMutableRawPointer?) -> Swift.Void)!)

Declaration
From
struct CFRunLoopSourceContext1 {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    var equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!
    var hash: ((UnsafeRawPointer?) -> CFHashCode)!
    var getPort: ((UnsafeMutableRawPointer?) -> mach_port_t)!
    var perform: ((UnsafeMutableRawPointer?, CFIndex, CFAllocator?, UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: (@escaping (UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: (@escaping (UnsafeRawPointer?) -> CFHashCode)!, getPort getPort: (@escaping (UnsafeMutableRawPointer?) -> mach_port_t)!, perform perform: (@escaping (UnsafeMutableRawPointer?, CFIndex, CFAllocator?, UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!)
}
To
struct CFRunLoopSourceContext1 {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    var equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!
    var hash: ((UnsafeRawPointer?) -> CFHashCode)!
    var getPort: ((UnsafeMutableRawPointer?) -> mach_port_t)!
    var perform: ((UnsafeMutableRawPointer?, CFIndex, CFAllocator?, UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: ((UnsafeRawPointer?) -> CFHashCode)!, getPort getPort: ((UnsafeMutableRawPointer?) -> mach_port_t)!, perform perform: ((UnsafeMutableRawPointer?, CFIndex, CFAllocator?, UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: (@escaping (UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: (@escaping (UnsafeRawPointer?) -> CFHashCode)!, getPort getPort: (@escaping (UnsafeMutableRawPointer?) -> mach_port_t)!, perform perform: (@escaping (UnsafeMutableRawPointer?, CFIndex, CFAllocator?, UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!, equal equal: ((UnsafeRawPointer?, UnsafeRawPointer?) -> DarwinBoolean)!, hash hash: ((UnsafeRawPointer?) -> CFHashCode)!, getPort getPort: ((UnsafeMutableRawPointer?) -> mach_port_t)!, perform perform: ((UnsafeMutableRawPointer?, CFIndex, CFAllocator?, UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!)

Declaration
From
struct CFRunLoopTimerContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFRunLoopTimerContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
struct CFSocketContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFSocketContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!
    var release: ((UnsafeRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: (@escaping (UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeRawPointer?) -> UnsafeRawPointer?)!, release release: ((UnsafeRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
struct CFStreamClientContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!
    var release: ((UnsafeMutableRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: (@escaping (UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)
}
To
struct CFStreamClientContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer!
    var retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!
    var release: ((UnsafeMutableRawPointer?) -> Swift.Void)!
    var copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: ((UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: (@escaping (UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: (@escaping (UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: (@escaping (UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer!, retain retain: ((UnsafeMutableRawPointer?) -> UnsafeMutableRawPointer?)!, release release: ((UnsafeMutableRawPointer?) -> Swift.Void)!, copyDescription copyDescription: ((UnsafeMutableRawPointer?) -> Unmanaged<CFString>?)!)

Declaration
From
func CFRunLoopObserverCreateWithHandler(_ allocator: CFAllocator!, _ activities: CFOptionFlags, _ repeats: Bool, _ order: CFIndex, _ block: (@escaping (CFRunLoopObserver?, CFRunLoopActivity) -> Swift.Void)!) -> CFRunLoopObserver!
To
func CFRunLoopObserverCreateWithHandler(_ allocator: CFAllocator!, _ activities: CFOptionFlags, _ repeats: Bool, _ order: CFIndex, _ block: ((CFRunLoopObserver?, CFRunLoopActivity) -> Swift.Void)!) -> CFRunLoopObserver!

Declaration
From
func CFRunLoopPerformBlock(_ rl: CFRunLoop!, _ mode: CFTypeRef!, _ block: (@escaping () -> Swift.Void)!)
To
func CFRunLoopPerformBlock(_ rl: CFRunLoop!, _ mode: CFTypeRef!, _ block: (() -> Swift.Void)!)

Declaration
From
func CFRunLoopTimerCreateWithHandler(_ allocator: CFAllocator!, _ fireDate: CFAbsoluteTime, _ interval: CFTimeInterval, _ flags: CFOptionFlags, _ order: CFIndex, _ block: (@escaping (CFRunLoopTimer?) -> Swift.Void)!) -> CFRunLoopTimer!
To
func CFRunLoopTimerCreateWithHandler(_ allocator: CFAllocator!, _ fireDate: CFAbsoluteTime, _ interval: CFTimeInterval, _ flags: CFOptionFlags, _ order: CFIndex, _ block: ((CFRunLoopTimer?) -> Swift.Void)!) -> CFRunLoopTimer!

Feedback