Documentation Archive Developer
Search

ObjectiveC Changes for Swift

ObjectiveC

Removed NSZone.init()
Removed NSZone.init(nilLiteral: ())
Removed objc_method_description.init(name: Selector, types: UnsafeMutablePointer<Int8>)
Removed objc_property_attribute_t.init(name: UnsafePointer<Int8>, value: UnsafePointer<Int8>)
Removed Selector.init()
Removed Selector.init(nilLiteral: ())
Removed &&(_: T, _: () -> ObjCBool) -> Bool
Removed autoreleasepool(_: () -> Void)
Removed objc_collect_if_needed(_: UInt)
Removed OBJC_GENERATIONAL
Removed ||(_: T, _: () -> ObjCBool) -> Bool
Added objc_method_description.init(name: Selector!, types: UnsafeMutablePointer<Int8>!)
Added objc_property_attribute_t.init(name: UnsafePointer<Int8>!, value: UnsafePointer<Int8>!)
Modified NSObject
DeclarationProtocols
From
class NSObject : NSObjectProtocol {
    class func load()
    class func initialize()
    init()
    class func new() -> Self
    class func allocWithZone(_ zone: NSZone) -> Self
    class func alloc() -> Self
    func finalize()
    func copy() -> AnyObject
    func mutableCopy() -> AnyObject
    class func copyWithZone(_ zone: NSZone) -> AnyObject!
    class func mutableCopyWithZone(_ zone: NSZone) -> AnyObject!
    class func instancesRespondToSelector(_ aSelector: Selector) -> Bool
    class func conformsToProtocol(_ protocol: Protocol) -> Bool
    func methodForSelector(_ aSelector: Selector) -> IMP
    class func instanceMethodForSelector(_ aSelector: Selector) -> IMP
    func doesNotRecognizeSelector(_ aSelector: Selector)
    func forwardingTargetForSelector(_ aSelector: Selector) -> AnyObject?
    func forwardInvocation(_ anInvocation: NSInvocation!)
    func methodSignatureForSelector(_ aSelector: Selector) -> NSMethodSignature!
    class func instanceMethodSignatureForSelector(_ aSelector: Selector) -> NSMethodSignature!
    func allowsWeakReference() -> Bool
    func retainWeakReference() -> Bool
    class func isSubclassOfClass(_ aClass: AnyClass) -> Bool
    class func resolveClassMethod(_ sel: Selector) -> Bool
    class func resolveInstanceMethod(_ sel: Selector) -> Bool
    class func hash() -> Int
    class func superclass() -> AnyClass?
    class func `class`() -> AnyClass!
    class func description() -> String
    class func debugDescription() -> String
}
extension NSObject {
    func provideImageData(_ data: UnsafeMutablePointer<Void>, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: AnyObject?)
}
extension NSObject {
    func attemptRecoveryFromError(_ error: NSError, optionIndex recoveryOptionIndex: Int, delegate delegate: AnyObject?, didRecoverSelector didRecoverSelector: Selector, contextInfo contextInfo: UnsafeMutablePointer<Void>)
    func attemptRecoveryFromError(_ error: NSError, optionIndex recoveryOptionIndex: Int) -> Bool
}
extension NSObject {
    func fileManager(_ fm: NSFileManager, shouldProceedAfterError errorInfo: [NSObject : AnyObject]) -> Bool
    func fileManager(_ fm: NSFileManager, willProcessPath path: String)
}
extension NSObject {
    class func accessInstanceVariablesDirectly() -> Bool
    func valueForKey(_ key: String) -> AnyObject?
    func setValue(_ value: AnyObject?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValueForKey(_ key: String) -> NSMutableArray
    func mutableOrderedSetValueForKey(_ key: String) -> NSMutableOrderedSet
    func mutableSetValueForKey(_ key: String) -> NSMutableSet
    func valueForKeyPath(_ keyPath: String) -> AnyObject?
    func setValue(_ value: AnyObject?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValueForKeyPath(_ keyPath: String) -> NSMutableArray
    func mutableOrderedSetValueForKeyPath(_ keyPath: String) -> NSMutableOrderedSet
    func mutableSetValueForKeyPath(_ keyPath: String) -> NSMutableSet
    func valueForUndefinedKey(_ key: String) -> AnyObject?
    func setValue(_ value: AnyObject?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValuesForKeys(_ keys: [String]) -> [String : AnyObject]
    func setValuesForKeysWithDictionary(_ keyedValues: [String : AnyObject])
}
extension NSObject {
    func observeValueForKeyPath(_ keyPath: String?, ofObject object: AnyObject?, change change: [String : AnyObject]?, context context: UnsafeMutablePointer<Void>)
}
extension NSObject {
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions, context context: UnsafeMutablePointer<Void>)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutablePointer<Void>)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
}
extension NSObject {
    func willChangeValueForKey(_ key: String)
    func didChangeValueForKey(_ key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAtIndexes indexes: NSIndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAtIndexes indexes: NSIndexSet, forKey key: String)
    func willChangeValueForKey(_ key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, usingObjects objects: Set<NSObject>)
    func didChangeValueForKey(_ key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, usingObjects objects: Set<NSObject>)
}
extension NSObject {
    class func keyPathsForValuesAffectingValueForKey(_ key: String) -> Set<String>
    class func automaticallyNotifiesObserversForKey(_ key: String) -> Bool
    var observationInfo: UnsafeMutablePointer<Void>
}
extension NSObject {
    var classForKeyedArchiver: AnyClass? { get }
    func replacementObjectForKeyedArchiver(_ archiver: NSKeyedArchiver) -> AnyObject?
    class func classFallbacksForKeyedArchiver() -> [String]
}
extension NSObject {
    class func classForKeyedUnarchiver() -> AnyClass
}
extension NSObject {
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: AnyClass { get }
    func replacementObjectForCoder(_ aCoder: NSCoder) -> AnyObject?
    func awakeAfterUsingCoder(_ aDecoder: NSCoder) -> AnyObject?
}
extension NSObject {
    var autoContentAccessingProxy: AnyObject { get }
}
extension NSObject {
    func performSelector(_ aSelector: Selector, withObject anArgument: AnyObject?, afterDelay delay: NSTimeInterval, inModes modes: [String])
    func performSelector(_ aSelector: Selector, withObject anArgument: AnyObject?, afterDelay delay: NSTimeInterval)
    class func cancelPreviousPerformRequestsWithTarget(_ aTarget: AnyObject, selector aSelector: Selector, object anArgument: AnyObject?)
    class func cancelPreviousPerformRequestsWithTarget(_ aTarget: AnyObject)
}
extension NSObject {
    func performSelectorOnMainThread(_ aSelector: Selector, withObject arg: AnyObject?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelectorOnMainThread(_ aSelector: Selector, withObject arg: AnyObject?, waitUntilDone wait: Bool)
    func performSelector(_ aSelector: Selector, onThread thr: NSThread, withObject arg: AnyObject?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(_ aSelector: Selector, onThread thr: NSThread, withObject arg: AnyObject?, waitUntilDone wait: Bool)
    func performSelectorInBackground(_ aSelector: Selector, withObject arg: AnyObject?)
}
extension NSObject : CustomDebugStringConvertible {
}
extension NSObject : CustomStringConvertible {
}
extension NSObject : Equatable, Hashable {
    var hashValue: Int { get }
}
extension NSObject : CVarArgType {
}
extension NSObject : Equatable, Hashable {
    var hashValue: Int { get }
}
extension NSObject : CVarArgType {
}
extension NSObject {
    func animationDidStart(_ anim: CAAnimation)
    func animationDidStop(_ anim: CAAnimation, finished flag: Bool)
}
extension NSObject {
    func displayLayer(_ layer: CALayer)
    func drawLayer(_ layer: CALayer, inContext ctx: CGContext)
    func layoutSublayersOfLayer(_ layer: CALayer)
    func actionForLayer(_ layer: CALayer, forKey event: String) -> CAAction?
}
extension NSObject {
    var isAccessibilityElement: Bool
    var accessibilityLabel: String?
    var accessibilityHint: String?
    var accessibilityValue: String?
    var accessibilityTraits: UIAccessibilityTraits
    var accessibilityFrame: CGRect
    @NSCopying var accessibilityPath: UIBezierPath?
    var accessibilityActivationPoint: CGPoint
    var accessibilityLanguage: String?
    var accessibilityElementsHidden: Bool
    var accessibilityViewIsModal: Bool
    var shouldGroupAccessibilityChildren: Bool
    var accessibilityNavigationStyle: UIAccessibilityNavigationStyle
    var accessibilityHeaderElements: [AnyObject]?
}
extension NSObject {
    func accessibilityElementCount() -> Int
    func accessibilityElementAtIndex(_ index: Int) -> AnyObject?
    func indexOfAccessibilityElement(_ element: AnyObject) -> Int
    var accessibilityElements: [AnyObject]?
}
extension NSObject {
    func accessibilityElementDidBecomeFocused()
    func accessibilityElementDidLoseFocus()
    func accessibilityElementIsFocused() -> Bool
    func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>?
}
extension NSObject {
    func accessibilityActivate() -> Bool
    func accessibilityIncrement()
    func accessibilityDecrement()
    func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool
    func accessibilityPerformEscape() -> Bool
    func accessibilityPerformMagicTap() -> Bool
    var accessibilityCustomActions: [UIAccessibilityCustomAction]?
}
extension NSObject {
    func awakeFromNib()
    func prepareForInterfaceBuilder()
}
extension NSObject {
    func cut(_ sender: AnyObject?)
    func copy(_ sender: AnyObject?)
    func paste(_ sender: AnyObject?)
    func select(_ sender: AnyObject?)
    func selectAll(_ sender: AnyObject?)
    func delete(_ sender: AnyObject?)
    func makeTextWritingDirectionLeftToRight(_ sender: AnyObject?)
    func makeTextWritingDirectionRightToLeft(_ sender: AnyObject?)
    func toggleBoldface(_ sender: AnyObject?)
    func toggleItalics(_ sender: AnyObject?)
    func toggleUnderline(_ sender: AnyObject?)
    func increaseSize(_ sender: AnyObject?)
    func decreaseSize(_ sender: AnyObject?)
}
CVarArgType, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSObjectProtocol
To
class NSObject : NSObjectProtocol {
    class func load()
    class func initialize()
    init()
    class func new() -> Self
    class func alloc(with zone: NSZone!) -> Self
    class func alloc() -> Self
    func finalize()
    func copy() -> Any
    func mutableCopy() -> Any
    class func copy(with zone: NSZone!) -> Any!
    class func mutableCopy(with zone: NSZone!) -> Any!
    class func instancesRespond(to aSelector: Selector!) -> Bool
    class func conforms(to protocol: Protocol) -> Bool
    func method(for aSelector: Selector!) -> IMP!
    class func instanceMethod(for aSelector: Selector!) -> IMP!
    func doesNotRecognizeSelector(_ aSelector: Selector!)
    func forwardingTarget(for aSelector: Selector!) -> Any?
    func forwardInvocation(_ anInvocation: NSInvocation!)
    func methodSignature(for aSelector: Selector!) -> NSMethodSignature!
    class func instanceMethodSignature(for aSelector: Selector!) -> NSMethodSignature!
    func allowsWeakReference() -> Bool
    func retainWeakReference() -> Bool
    class func isSubclass(of aClass: Swift.AnyClass) -> Bool
    class func resolveClassMethod(_ sel: Selector!) -> Bool
    class func resolveInstanceMethod(_ sel: Selector!) -> Bool
    class func hash() -> Int
    class func superclass() -> Swift.AnyClass?
    class func `class`() -> Swift.AnyClass!
    class func description() -> String
    class func debugDescription() -> String
}
extension NSObject {
    func provideImageData(_ data: UnsafeMutableRawPointer, bytesPerRow rowbytes: Int, origin x: Int, _ y: Int, size width: Int, _ height: Int, userInfo info: Any?)
}
extension NSObject {
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int, delegate delegate: Any?, didRecoverSelector didRecoverSelector: Selector?, contextInfo contextInfo: UnsafeMutableRawPointer?)
    func attemptRecovery(fromError error: Error, optionIndex recoveryOptionIndex: Int) -> Bool
}
extension NSObject {
    func fileManager(_ fm: FileManager, shouldProceedAfterError errorInfo: [AnyHashable : Any]) -> Bool
    func fileManager(_ fm: FileManager, willProcessPath path: String)
}
extension NSObject {
    class var accessInstanceVariablesDirectly: Bool { get }
    func value(forKey key: String) -> Any?
    func setValue(_ value: Any?, forKey key: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKey inKey: String) throws
    func mutableArrayValue(forKey key: String) -> NSMutableArray
    func mutableOrderedSetValue(forKey key: String) -> NSMutableOrderedSet
    func mutableSetValue(forKey key: String) -> NSMutableSet
    func value(forKeyPath keyPath: String) -> Any?
    func setValue(_ value: Any?, forKeyPath keyPath: String)
    func validateValue(_ ioValue: AutoreleasingUnsafeMutablePointer<AnyObject?>, forKeyPath inKeyPath: String) throws
    func mutableArrayValue(forKeyPath keyPath: String) -> NSMutableArray
    func mutableOrderedSetValue(forKeyPath keyPath: String) -> NSMutableOrderedSet
    func mutableSetValue(forKeyPath keyPath: String) -> NSMutableSet
    func value(forUndefinedKey key: String) -> Any?
    func setValue(_ value: Any?, forUndefinedKey key: String)
    func setNilValueForKey(_ key: String)
    func dictionaryWithValues(forKeys keys: [String]) -> [String : Any]
    func setValuesForKeys(_ keyedValues: [String : Any])
}
extension NSObject {
    func observeValue(forKeyPath keyPath: String?, of object: Any?, change change: [NSKeyValueChangeKey : Any]?, context context: UnsafeMutableRawPointer?)
}
extension NSObject {
    func addObserver(_ observer: NSObject, forKeyPath keyPath: String, options options: NSKeyValueObservingOptions = [], context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String, context context: UnsafeMutableRawPointer?)
    func removeObserver(_ observer: NSObject, forKeyPath keyPath: String)
}
extension NSObject {
    func willChangeValue(forKey key: String)
    func didChangeValue(forKey key: String)
    func willChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func didChange(_ changeKind: NSKeyValueChange, valuesAt indexes: IndexSet, forKey key: String)
    func willChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
    func didChangeValue(forKey key: String, withSetMutation mutationKind: NSKeyValueSetMutationKind, using objects: Set<AnyHashable>)
}
extension NSObject {
    class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String>
    class func automaticallyNotifiesObservers(forKey key: String) -> Bool
    var observationInfo: UnsafeMutableRawPointer?
}
extension NSObject {
    var classForKeyedArchiver: Swift.AnyClass? { get }
    func replacementObject(for archiver: NSKeyedArchiver) -> Any?
    class func classFallbacksForKeyedArchiver() -> [String]
}
extension NSObject {
    class func classForKeyedUnarchiver() -> Swift.AnyClass
}
extension NSObject {
    class func version() -> Int
    class func setVersion(_ aVersion: Int)
    var classForCoder: Swift.AnyClass { get }
    func replacementObject(for aCoder: NSCoder) -> Any?
    func awakeAfter(using aDecoder: NSCoder) -> Any?
}
extension NSObject {
    var autoContentAccessingProxy: Any { get }
}
extension NSObject {
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval, inModes modes: [RunLoopMode])
    func perform(_ aSelector: Selector, with anArgument: Any?, afterDelay delay: TimeInterval)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any, selector aSelector: Selector, object anArgument: Any?)
    class func cancelPreviousPerformRequests(withTarget aTarget: Any)
}
extension NSObject {
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func performSelector(onMainThread aSelector: Selector, with arg: Any?, waitUntilDone wait: Bool)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool, modes array: [String]?)
    func perform(_ aSelector: Selector, on thr: Thread, with arg: Any?, waitUntilDone wait: Bool)
    func performSelector(inBackground aSelector: Selector, with arg: Any?)
}
extension NSObject : CustomStringConvertible {
}
extension NSObject : CustomDebugStringConvertible {
}
extension NSObject : CVarArg {
}
extension NSObject : Equatable, Hashable {
    var hashValue: Int { get }
}
extension NSObject : Equatable, Hashable {
    var hashValue: Int { get }
}
extension NSObject : CVarArg {
}
extension NSObject {
    var isAccessibilityElement: Bool
    var accessibilityLabel: String?
    var accessibilityHint: String?
    var accessibilityValue: String?
    var accessibilityTraits: UIAccessibilityTraits
    var accessibilityFrame: CGRect
    @NSCopying var accessibilityPath: UIBezierPath?
    var accessibilityActivationPoint: CGPoint
    var accessibilityLanguage: String?
    var accessibilityElementsHidden: Bool
    var accessibilityViewIsModal: Bool
    var shouldGroupAccessibilityChildren: Bool
    var accessibilityNavigationStyle: UIAccessibilityNavigationStyle
    var accessibilityHeaderElements: [Any]?
}
extension NSObject {
    func accessibilityElementCount() -> Int
    func accessibilityElement(at index: Int) -> Any?
    func index(ofAccessibilityElement element: Any) -> Int
    var accessibilityElements: [Any]?
}
extension NSObject {
    func accessibilityElementDidBecomeFocused()
    func accessibilityElementDidLoseFocus()
    func accessibilityElementIsFocused() -> Bool
    func accessibilityAssistiveTechnologyFocusedIdentifiers() -> Set<String>?
}
extension NSObject {
    func accessibilityActivate() -> Bool
    func accessibilityIncrement()
    func accessibilityDecrement()
    func accessibilityScroll(_ direction: UIAccessibilityScrollDirection) -> Bool
    func accessibilityPerformEscape() -> Bool
    func accessibilityPerformMagicTap() -> Bool
    var accessibilityCustomActions: [UIAccessibilityCustomAction]?
}
extension NSObject {
    var accessibilityCustomRotors: [UIAccessibilityCustomRotor]?
}
extension NSObject {
    func awakeFromNib()
    func prepareForInterfaceBuilder()
}
CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSObjectProtocol

Declaration
From
class func conformsToProtocol(_ protocol: Protocol) -> Bool
To
class func conforms(to protocol: Protocol) -> Bool

Declaration
From
func copy() -> AnyObject
To
func copy() -> Any

Declaration
From
func doesNotRecognizeSelector(_ aSelector: Selector)
To
func doesNotRecognizeSelector(_ aSelector: Selector!)

Deprecation
From--
ToiOS 10.0

Declaration
From
func forwardingTargetForSelector(_ aSelector: Selector) -> AnyObject?
To
func forwardingTarget(for aSelector: Selector!) -> Any?

Declaration
From
class func instanceMethodForSelector(_ aSelector: Selector) -> IMP
To
class func instanceMethod(for aSelector: Selector!) -> IMP!

Declaration
From
class func instancesRespondToSelector(_ aSelector: Selector) -> Bool
To
class func instancesRespond(to aSelector: Selector!) -> Bool

Declaration
From
class func isSubclassOfClass(_ aClass: AnyClass) -> Bool
To
class func isSubclass(of aClass: Swift.AnyClass) -> Bool

Declaration
From
func methodForSelector(_ aSelector: Selector) -> IMP
To
func method(for aSelector: Selector!) -> IMP!

Declaration
From
func mutableCopy() -> AnyObject
To
func mutableCopy() -> Any

Declaration
From
class func resolveClassMethod(_ sel: Selector) -> Bool
To
class func resolveClassMethod(_ sel: Selector!) -> Bool

Declaration
From
class func resolveInstanceMethod(_ sel: Selector) -> Bool
To
class func resolveInstanceMethod(_ sel: Selector!) -> Bool

Declaration
From
class func superclass() -> AnyClass?
To
class func superclass() -> Swift.AnyClass?

Declaration
From
protocol NSObjectProtocol {
    func isEqual(_ object: AnyObject?) -> Bool
    var hash: Int { get }
    var superclass: AnyClass? { get }
    func `class`() -> AnyClass!
    func `self`() -> Self
    func performSelector(_ aSelector: Selector) -> Unmanaged<AnyObject>!
    func performSelector(_ aSelector: Selector, withObject object: AnyObject!) -> Unmanaged<AnyObject>!
    func performSelector(_ aSelector: Selector, withObject object1: AnyObject!, withObject object2: AnyObject!) -> Unmanaged<AnyObject>!
    func isProxy() -> Bool
    func isKindOfClass(_ aClass: AnyClass) -> Bool
    func isMemberOfClass(_ aClass: AnyClass) -> Bool
    func conformsToProtocol(_ aProtocol: Protocol) -> Bool
    func respondsToSelector(_ aSelector: Selector) -> Bool
    func retain() -> Self!
    func release()
    func autorelease() -> Self!
    func retainCount() -> Int
    func zone() -> NSZone
    var description: String { get }
    optional var debugDescription: String { get }
}
To
protocol NSObjectProtocol {
    func isEqual(_ object: Any?) -> Bool
    var hash: Int { get }
    var superclass: Swift.AnyClass? { get }
    func `class`() -> Swift.AnyClass!
    func `self`() -> Self
    func perform(_ aSelector: Selector!) -> Unmanaged<AnyObject>!
    func perform(_ aSelector: Selector!, with object: Any!) -> Unmanaged<AnyObject>!
    func perform(_ aSelector: Selector!, with object1: Any!, with object2: Any!) -> Unmanaged<AnyObject>!
    func isProxy() -> Bool
    func isKind(of aClass: Swift.AnyClass) -> Bool
    func isMember(of aClass: Swift.AnyClass) -> Bool
    func conforms(to aProtocol: Protocol) -> Bool
    func responds(to aSelector: Selector!) -> Bool
    func retain() -> Self!
    func release()
    func autorelease() -> Self!
    func retainCount() -> Int
    func zone() -> NSZone!
    var description: String { get }
    optional var debugDescription: String { get }
}

Declaration
From
func conformsToProtocol(_ aProtocol: Protocol) -> Bool
To
func conforms(to aProtocol: Protocol) -> Bool

Declaration
From
func isEqual(_ object: AnyObject?) -> Bool
To
func isEqual(_ object: Any?) -> Bool

Declaration
From
func isKindOfClass(_ aClass: AnyClass) -> Bool
To
func isKind(of aClass: Swift.AnyClass) -> Bool

Declaration
From
func isMemberOfClass(_ aClass: AnyClass) -> Bool
To
func isMember(of aClass: Swift.AnyClass) -> Bool

Declaration
From
func performSelector(_ aSelector: Selector) -> Unmanaged<AnyObject>!
To
func perform(_ aSelector: Selector!) -> Unmanaged<AnyObject>!

Declaration
From
func performSelector(_ aSelector: Selector, withObject object: AnyObject!) -> Unmanaged<AnyObject>!
To
func perform(_ aSelector: Selector!, with object: Any!) -> Unmanaged<AnyObject>!

Declaration
From
func performSelector(_ aSelector: Selector, withObject object1: AnyObject!, withObject object2: AnyObject!) -> Unmanaged<AnyObject>!
To
func perform(_ aSelector: Selector!, with object1: Any!, with object2: Any!) -> Unmanaged<AnyObject>!

Declaration
From
func respondsToSelector(_ aSelector: Selector) -> Bool
To
func responds(to aSelector: Selector!) -> Bool

Declaration
From
var superclass: AnyClass? { get }
To
var superclass: Swift.AnyClass? { get }

DeclarationProtocols
From
struct NSZone : NilLiteralConvertible {
    init()
    init(nilLiteral nilLiteral: ())
}
NilLiteralConvertible
To
struct NSZone {
}
--

Declaration
From
struct objc_method_description {
    var name: Selector
    var types: UnsafeMutablePointer<Int8>
    init()
    init(name name: Selector, types types: UnsafeMutablePointer<Int8>)
}
To
struct objc_method_description {
    var name: Selector!
    var types: UnsafeMutablePointer<Int8>!
    init()
    init(name name: Selector!, types types: UnsafeMutablePointer<Int8>!)
}

Declaration
From
var name: Selector
To
var name: Selector!

Declaration
From
var types: UnsafeMutablePointer<Int8>
To
var types: UnsafeMutablePointer<Int8>!

Declaration
From
struct objc_object {
    var isa: AnyClass!
    init()
    init(isa isa: AnyClass!)
}
To
struct objc_object {
    var isa: Swift.AnyClass!
    init()
    init(isa isa: Swift.AnyClass!)
}

Modified objc_object.init(isa: Swift.AnyClass!)
Declaration
From
init(isa isa: AnyClass!)
To
init(isa isa: Swift.AnyClass!)

Declaration
From
var isa: AnyClass!
To
var isa: Swift.AnyClass!

Declaration
From
struct objc_property_attribute_t {
    var name: UnsafePointer<Int8>
    var value: UnsafePointer<Int8>
    init()
    init(name name: UnsafePointer<Int8>, value value: UnsafePointer<Int8>)
}
To
struct objc_property_attribute_t {
    var name: UnsafePointer<Int8>!
    var value: UnsafePointer<Int8>!
    init()
    init(name name: UnsafePointer<Int8>!, value value: UnsafePointer<Int8>!)
}

Declaration
From
var name: UnsafePointer<Int8>
To
var name: UnsafePointer<Int8>!

Declaration
From
var value: UnsafePointer<Int8>
To
var value: UnsafePointer<Int8>!

Declaration
From
struct objc_super {
    var receiver: Unmanaged<AnyObject>!
    var super_class: AnyClass!
    init()
    init(receiver receiver: Unmanaged<AnyObject>!, super_class super_class: AnyClass!)
}
To
struct objc_super {
    var receiver: Unmanaged<AnyObject>!
    var super_class: Swift.AnyClass!
    init()
    init(receiver receiver: Unmanaged<AnyObject>!, super_class super_class: Swift.AnyClass!)
}

Modified objc_super.init(receiver: Unmanaged<AnyObject>!, super_class: Swift.AnyClass!)
Declaration
From
init(receiver receiver: Unmanaged<AnyObject>!, super_class super_class: AnyClass!)
To
init(receiver receiver: Unmanaged<AnyObject>!, super_class super_class: Swift.AnyClass!)

Declaration
From
var super_class: AnyClass!
To
var super_class: Swift.AnyClass!

DeclarationProtocols
From
struct ObjCBool : BooleanType, BooleanLiteralConvertible {
    init(_ value: Bool)
    var boolValue: Bool { get }
    init(booleanLiteral value: Bool)
}
extension ObjCBool : _Reflectable {
}
extension ObjCBool : CustomStringConvertible {
    var description: String { get }
}
BooleanLiteralConvertible, BooleanType, CustomStringConvertible
To
struct ObjCBool : ExpressibleByBooleanLiteral {
    init(_ value: Bool)
    var boolValue: Bool { get }
    init(booleanLiteral value: Bool)
}
extension ObjCBool : CustomReflectable {
    var customMirror: Mirror { get }
}
extension ObjCBool : CustomStringConvertible {
    var description: String { get }
}
CustomReflectable, CustomStringConvertible, ExpressibleByBooleanLiteral

DeclarationProtocols
From
struct Selector : StringLiteralConvertible, NilLiteralConvertible {
    init(_ str: String)
    init(unicodeScalarLiteral value: String)
    init(extendedGraphemeClusterLiteral value: String)
    init(stringLiteral value: String)
    init()
    init(nilLiteral nilLiteral: ())
}
extension Selector : Equatable, Hashable {
    var hashValue: Int { get }
}
extension Selector : CustomStringConvertible {
    var description: String { get }
}
extension Selector : _Reflectable {
}
CustomStringConvertible, Equatable, Hashable, NilLiteralConvertible, StringLiteralConvertible
To
struct Selector : ExpressibleByStringLiteral {
    init(_ str: String)
    init(unicodeScalarLiteral value: String)
    init(extendedGraphemeClusterLiteral value: String)
    init(stringLiteral value: String)
}
extension Selector : CustomStringConvertible {
    var description: String { get }
}
extension Selector : CustomReflectable {
    var customMirror: Mirror { get }
}
extension Selector : Equatable, Hashable {
    var hashValue: Int { get }
}
CustomReflectable, CustomStringConvertible, Equatable, ExpressibleByStringLiteral, Hashable

Modified ==(_: NSObject, _: NSObject) -> Bool
Declaration
From
@warn_unused_result
func ==(_ lhs: NSObject, _ rhs: NSObject) -> Bool
To
func ==(_ lhs: NSObject, _ rhs: NSObject) -> Bool

Modified ==(_: Selector, _: Selector) -> Bool
Declaration
From
@warn_unused_result
func ==(_ lhs: Selector, _ rhs: Selector) -> Bool
To
func ==(_ lhs: Selector, _ rhs: Selector) -> Bool

Modified Category
Declaration
From
typealias Category = COpaquePointer
To
typealias Category = OpaquePointer

Declaration
From
func class_addIvar(_ cls: AnyClass!, _ name: UnsafePointer<Int8>, _ size: Int, _ alignment: UInt8, _ types: UnsafePointer<Int8>) -> Bool
To
func class_addIvar(_ cls: Swift.AnyClass!, _ name: UnsafePointer<Int8>!, _ size: Int, _ alignment: UInt8, _ types: UnsafePointer<Int8>!) -> Bool

Declaration
From
func class_addMethod(_ cls: AnyClass!, _ name: Selector, _ imp: IMP, _ types: UnsafePointer<Int8>) -> Bool
To
func class_addMethod(_ cls: Swift.AnyClass!, _ name: Selector!, _ imp: IMP!, _ types: UnsafePointer<Int8>!) -> Bool

Declaration
From
func class_addProperty(_ cls: AnyClass!, _ name: UnsafePointer<Int8>, _ attributes: UnsafePointer<objc_property_attribute_t>, _ attributeCount: UInt32) -> Bool
To
func class_addProperty(_ cls: Swift.AnyClass!, _ name: UnsafePointer<Int8>!, _ attributes: UnsafePointer<objc_property_attribute_t>!, _ attributeCount: UInt32) -> Bool

Declaration
From
func class_addProtocol(_ cls: AnyClass!, _ protocol: Protocol!) -> Bool
To
func class_addProtocol(_ cls: Swift.AnyClass!, _ protocol: Protocol!) -> Bool

Declaration
From
func class_conformsToProtocol(_ cls: AnyClass!, _ protocol: Protocol!) -> Bool
To
func class_conformsToProtocol(_ cls: Swift.AnyClass!, _ protocol: Protocol!) -> Bool

Declaration
From
func class_copyIvarList(_ cls: AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<Ivar>
To
func class_copyIvarList(_ cls: Swift.AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<Ivar?>!

Declaration
From
func class_copyMethodList(_ cls: AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<Method>
To
func class_copyMethodList(_ cls: Swift.AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<Method?>!

Declaration
From
func class_copyPropertyList(_ cls: AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<objc_property_t>
To
func class_copyPropertyList(_ cls: Swift.AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<objc_property_t?>!

Declaration
From
func class_copyProtocolList(_ cls: AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>) -> AutoreleasingUnsafeMutablePointer<Protocol?>
To
func class_copyProtocolList(_ cls: Swift.AnyClass!, _ outCount: UnsafeMutablePointer<UInt32>!) -> AutoreleasingUnsafeMutablePointer<Protocol?>!

Declaration
From
func class_getClassMethod(_ cls: AnyClass!, _ name: Selector) -> Method
To
func class_getClassMethod(_ cls: Swift.AnyClass!, _ name: Selector!) -> Method!

Declaration
From
func class_getClassVariable(_ cls: AnyClass!, _ name: UnsafePointer<Int8>) -> Ivar
To
func class_getClassVariable(_ cls: Swift.AnyClass!, _ name: UnsafePointer<Int8>!) -> Ivar!

Declaration
From
func class_getImageName(_ cls: AnyClass!) -> UnsafePointer<Int8>
To
func class_getImageName(_ cls: Swift.AnyClass!) -> UnsafePointer<Int8>!

Declaration
From
func class_getInstanceMethod(_ cls: AnyClass!, _ name: Selector) -> Method
To
func class_getInstanceMethod(_ cls: Swift.AnyClass!, _ name: Selector!) -> Method!

Declaration
From
func class_getInstanceSize(_ cls: AnyClass!) -> Int
To
func class_getInstanceSize(_ cls: Swift.AnyClass!) -> Int

Declaration
From
func class_getInstanceVariable(_ cls: AnyClass!, _ name: UnsafePointer<Int8>) -> Ivar
To
func class_getInstanceVariable(_ cls: Swift.AnyClass!, _ name: UnsafePointer<Int8>!) -> Ivar!

Declaration
From
func class_getIvarLayout(_ cls: AnyClass!) -> UnsafePointer<UInt8>
To
func class_getIvarLayout(_ cls: Swift.AnyClass!) -> UnsafePointer<UInt8>!

Declaration
From
func class_getMethodImplementation(_ cls: AnyClass!, _ name: Selector) -> IMP
To
func class_getMethodImplementation(_ cls: Swift.AnyClass!, _ name: Selector!) -> IMP!

Declaration
From
func class_getName(_ cls: AnyClass!) -> UnsafePointer<Int8>
To
func class_getName(_ cls: Swift.AnyClass!) -> UnsafePointer<Int8>!

Declaration
From
func class_getProperty(_ cls: AnyClass!, _ name: UnsafePointer<Int8>) -> objc_property_t
To
func class_getProperty(_ cls: Swift.AnyClass!, _ name: UnsafePointer<Int8>!) -> objc_property_t!

Declaration
From
func class_getSuperclass(_ cls: AnyClass!) -> AnyClass!
To
func class_getSuperclass(_ cls: Swift.AnyClass!) -> Swift.AnyClass!

Declaration
From
func class_getVersion(_ cls: AnyClass!) -> Int32
To
func class_getVersion(_ cls: Swift.AnyClass!) -> Int32

Declaration
From
func class_getWeakIvarLayout(_ cls: AnyClass!) -> UnsafePointer<UInt8>
To
func class_getWeakIvarLayout(_ cls: Swift.AnyClass!) -> UnsafePointer<UInt8>!

Declaration
From
func class_isMetaClass(_ cls: AnyClass!) -> Bool
To
func class_isMetaClass(_ cls: Swift.AnyClass!) -> Bool

Declaration
From
func class_replaceMethod(_ cls: AnyClass!, _ name: Selector, _ imp: IMP, _ types: UnsafePointer<Int8>) -> IMP
To
func class_replaceMethod(_ cls: Swift.AnyClass!, _ name: Selector!, _ imp: IMP!, _ types: UnsafePointer<Int8>!) -> IMP!

Declaration
From
func class_replaceProperty(_ cls: AnyClass!, _ name: UnsafePointer<Int8>, _ attributes: UnsafePointer<objc_property_attribute_t>, _ attributeCount: UInt32)
To
func class_replaceProperty(_ cls: Swift.AnyClass!, _ name: UnsafePointer<Int8>!, _ attributes: UnsafePointer<objc_property_attribute_t>!, _ attributeCount: UInt32)

Declaration
From
func class_respondsToSelector(_ cls: AnyClass!, _ sel: Selector) -> Bool
To
func class_respondsToSelector(_ cls: Swift.AnyClass!, _ sel: Selector!) -> Bool

Declaration
From
func class_setIvarLayout(_ cls: AnyClass!, _ layout: UnsafePointer<UInt8>)
To
func class_setIvarLayout(_ cls: Swift.AnyClass!, _ layout: UnsafePointer<UInt8>!)

Declaration
From
func class_setVersion(_ cls: AnyClass!, _ version: Int32)
To
func class_setVersion(_ cls: Swift.AnyClass!, _ version: Int32)

Declaration
From
func class_setWeakIvarLayout(_ cls: AnyClass!, _ layout: UnsafePointer<UInt8>)
To
func class_setWeakIvarLayout(_ cls: Swift.AnyClass!, _ layout: UnsafePointer<UInt8>!)

Modified IMP
Declaration
From
typealias IMP = COpaquePointer
To
typealias IMP = OpaquePointer

Declaration
From
func imp_getBlock(_ anImp: IMP) -> AnyObject!
To
func imp_getBlock(_ anImp: IMP!) -> Any!

Declaration
From
func imp_implementationWithBlock(_ block: AnyObject!) -> IMP
To
func imp_implementationWithBlock(_ block: Any!) -> IMP!

Declaration
From
func imp_removeBlock(_ anImp: IMP) -> Bool
To
func imp_removeBlock(_ anImp: IMP!) -> Bool

Modified Ivar
Declaration
From
typealias Ivar = COpaquePointer
To
typealias Ivar = OpaquePointer

Declaration
From
func ivar_getName(_ v: Ivar) -> UnsafePointer<Int8>
To
func ivar_getName(_ v: Ivar!) -> UnsafePointer<Int8>!

Declaration
From
func ivar_getOffset(_ v: Ivar) -> Int
To
func ivar_getOffset(_ v: Ivar!) -> Int

Declaration
From
func ivar_getTypeEncoding(_ v: Ivar) -> UnsafePointer<Int8>
To
func ivar_getTypeEncoding(_ v: Ivar!) -> UnsafePointer<Int8>!

Modified marg_list
Declaration
From
typealias marg_list = UnsafeMutablePointer<Void>
To
typealias marg_list = UnsafeMutableRawPointer

Modified Method
Declaration
From
typealias Method = COpaquePointer
To
typealias Method = OpaquePointer

Declaration
From
func method_copyArgumentType(_ m: Method, _ index: UInt32) -> UnsafeMutablePointer<Int8>
To
func method_copyArgumentType(_ m: Method!, _ index: UInt32) -> UnsafeMutablePointer<Int8>!

Declaration
From
func method_copyReturnType(_ m: Method) -> UnsafeMutablePointer<Int8>
To
func method_copyReturnType(_ m: Method!) -> UnsafeMutablePointer<Int8>!

Declaration
From
func method_exchangeImplementations(_ m1: Method, _ m2: Method)
To
func method_exchangeImplementations(_ m1: Method!, _ m2: Method!)

Declaration
From
func method_getArgumentType(_ m: Method, _ index: UInt32, _ dst: UnsafeMutablePointer<Int8>, _ dst_len: Int)
To
func method_getArgumentType(_ m: Method!, _ index: UInt32, _ dst: UnsafeMutablePointer<Int8>!, _ dst_len: Int)

Declaration
From
func method_getDescription(_ m: Method) -> UnsafeMutablePointer<objc_method_description>
To
func method_getDescription(_ m: Method!) -> UnsafeMutablePointer<objc_method_description>!

Declaration
From
func method_getImplementation(_ m: Method) -> IMP
To
func method_getImplementation(_ m: Method!) -> IMP!

Declaration
From
func method_getName(_ m: Method) -> Selector
To
func method_getName(_ m: Method!) -> Selector!

Declaration
From
func method_getNumberOfArguments(_ m: Method) -> UInt32
To
func method_getNumberOfArguments(_ m: Method!) -> UInt32

Declaration
From
func method_getReturnType(_ m: Method, _ dst: UnsafeMutablePointer<Int8>, _ dst_len: Int)
To
func method_getReturnType(_ m: Method!, _ dst: UnsafeMutablePointer<Int8>!, _ dst_len: Int)

Declaration
From
func method_getTypeEncoding(_ m: Method) -> UnsafePointer<Int8>
To
func method_getTypeEncoding(_ m: Method!) -> UnsafePointer<Int8>!

Declaration
From
func method_setImplementation(_ m: Method, _ imp: IMP) -> IMP
To
func method_setImplementation(_ m: Method!, _ imp: IMP!) -> IMP!

Declaration
From
func objc_allocateClassPair(_ superclass: AnyClass!, _ name: UnsafePointer<Int8>, _ extraBytes: Int) -> AnyClass!
To
func objc_allocateClassPair(_ superclass: Swift.AnyClass!, _ name: UnsafePointer<Int8>!, _ extraBytes: Int) -> Swift.AnyClass!

Declaration
From
func objc_allocateProtocol(_ name: UnsafePointer<Int8>) -> Protocol!
To
func objc_allocateProtocol(_ name: UnsafePointer<Int8>!) -> Protocol!

Modified objc_assertRegisteredThreadWithCollector()
Deprecation
From--
ToiOS 10.0

Modified objc_begin_catch(_: UnsafeMutableRawPointer!) -> Any!
Declaration
From
func objc_begin_catch(_ exc_buf: UnsafeMutablePointer<Void>) -> AnyObject!
To
func objc_begin_catch(_ exc_buf: UnsafeMutableRawPointer!) -> Any!

Modified objc_clear_stack(_: UInt)
Deprecation
From--
ToiOS 10.0

Modified objc_collect(_: UInt)
Deprecation
From--
ToiOS 10.0

Modified objc_collecting_enabled() -> Bool
Deprecation
From--
ToiOS 10.0

Modified objc_collectingEnabled() -> Bool
Deprecation
From--
ToiOS 10.0

Declaration
From
func objc_copyClassList(_ outCount: UnsafeMutablePointer<UInt32>) -> AutoreleasingUnsafeMutablePointer<AnyClass?>
To
func objc_copyClassList(_ outCount: UnsafeMutablePointer<UInt32>!) -> AutoreleasingUnsafeMutablePointer<Swift.AnyClass?>!

Declaration
From
func objc_copyClassNamesForImage(_ image: UnsafePointer<Int8>, _ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<UnsafePointer<Int8>>
To
func objc_copyClassNamesForImage(_ image: UnsafePointer<Int8>!, _ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<UnsafePointer<Int8>?>!

Declaration
From
func objc_copyImageNames(_ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<UnsafePointer<Int8>>
To
func objc_copyImageNames(_ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<UnsafePointer<Int8>?>!

Declaration
From
func objc_copyProtocolList(_ outCount: UnsafeMutablePointer<UInt32>) -> AutoreleasingUnsafeMutablePointer<Protocol?>
To
func objc_copyProtocolList(_ outCount: UnsafeMutablePointer<UInt32>!) -> AutoreleasingUnsafeMutablePointer<Protocol?>!

Declaration
From
func objc_disposeClassPair(_ cls: AnyClass!)
To
func objc_disposeClassPair(_ cls: Swift.AnyClass!)

Declaration
From
func objc_duplicateClass(_ original: AnyClass!, _ name: UnsafePointer<Int8>, _ extraBytes: Int) -> AnyClass!
To
func objc_duplicateClass(_ original: Swift.AnyClass!, _ name: UnsafePointer<Int8>!, _ extraBytes: Int) -> Swift.AnyClass!

Declaration
From
func objc_enumerationMutation(_ obj: AnyObject!)
To
func objc_enumerationMutation(_ obj: Any!)

Modified objc_exception_handler
Declaration
From
typealias objc_exception_handler = (AnyObject!, UnsafeMutablePointer<Void>) -> Void
To
typealias objc_exception_handler = (Any?, UnsafeMutableRawPointer?) -> Swift.Void

Modified objc_exception_matcher
Declaration
From
typealias objc_exception_matcher = (AnyClass!, AnyObject!) -> Int32
To
typealias objc_exception_matcher = (Swift.AnyClass?, Any?) -> Int32

Modified objc_exception_preprocessor
Declaration
From
typealias objc_exception_preprocessor = (AnyObject!) -> AnyObject!
To
typealias objc_exception_preprocessor = (Any?) -> Any?

Modified objc_exception_throw(_: Any!)
Declaration
From
func objc_exception_throw(_ exception: AnyObject!)
To
func objc_exception_throw(_ exception: Any!)

Modified objc_finalizeOnMainThread(_: Swift.AnyClass!)
DeclarationDeprecation
From
func objc_finalizeOnMainThread(_ cls: AnyClass!)
--
To
func objc_finalizeOnMainThread(_ cls: Swift.AnyClass!)
iOS 10.0

Declaration
From
func objc_getAssociatedObject(_ object: AnyObject!, _ key: UnsafePointer<Void>) -> AnyObject!
To
func objc_getAssociatedObject(_ object: Any!, _ key: UnsafeRawPointer!) -> Any!

Declaration
From
func objc_getClass(_ name: UnsafePointer<Int8>) -> AnyObject!
To
func objc_getClass(_ name: UnsafePointer<Int8>!) -> Any!

Declaration
From
func objc_getClassList(_ buffer: AutoreleasingUnsafeMutablePointer<AnyClass?>, _ bufferCount: Int32) -> Int32
To
func objc_getClassList(_ buffer: AutoreleasingUnsafeMutablePointer<Swift.AnyClass?>!, _ bufferCount: Int32) -> Int32

Declaration
From
func objc_getMetaClass(_ name: UnsafePointer<Int8>) -> AnyObject!
To
func objc_getMetaClass(_ name: UnsafePointer<Int8>!) -> Any!

Declaration
From
func objc_getProtocol(_ name: UnsafePointer<Int8>) -> Protocol!
To
func objc_getProtocol(_ name: UnsafePointer<Int8>!) -> Protocol!

Declaration
From
func objc_getRequiredClass(_ name: UnsafePointer<Int8>) -> AnyClass!
To
func objc_getRequiredClass(_ name: UnsafePointer<Int8>!) -> Swift.AnyClass!

Modified objc_is_finalized(_: UnsafeMutableRawPointer!) -> Bool
DeclarationDeprecation
From
func objc_is_finalized(_ ptr: UnsafeMutablePointer<Void>) -> Bool
--
To
func objc_is_finalized(_ ptr: UnsafeMutableRawPointer!) -> Bool
iOS 10.0

Declaration
From
func objc_loadWeak(_ location: AutoreleasingUnsafeMutablePointer<AnyObject?>) -> AnyObject!
To
func objc_loadWeak(_ location: AutoreleasingUnsafeMutablePointer<AnyObject?>!) -> Any!

Declaration
From
func objc_lookUpClass(_ name: UnsafePointer<Int8>) -> AnyClass!
To
func objc_lookUpClass(_ name: UnsafePointer<Int8>!) -> Swift.AnyClass!

Modified objc_memmove_collectable(_: UnsafeMutableRawPointer!, _: UnsafeRawPointer!, _: Int) -> UnsafeMutableRawPointer!
DeclarationDeprecation
From
func objc_memmove_collectable(_ dst: UnsafeMutablePointer<Void>, _ src: UnsafePointer<Void>, _ size: Int) -> UnsafeMutablePointer<Void>
--
To
func objc_memmove_collectable(_ dst: UnsafeMutableRawPointer!, _ src: UnsafeRawPointer!, _ size: Int) -> UnsafeMutableRawPointer!
iOS 10.0

Modified objc_objectptr_t
Declaration
From
typealias objc_objectptr_t = UnsafePointer<Void>
To
typealias objc_objectptr_t = UnsafeRawPointer

Declaration
From
typealias objc_property_t = COpaquePointer
To
typealias objc_property_t = OpaquePointer

Declaration
From
func objc_registerClassPair(_ cls: AnyClass!)
To
func objc_registerClassPair(_ cls: Swift.AnyClass!)

Modified objc_registerThreadWithCollector()
Deprecation
From--
ToiOS 10.0

Declaration
From
func objc_removeAssociatedObjects(_ object: AnyObject!)
To
func objc_removeAssociatedObjects(_ object: Any!)

Modified objc_set_collection_ratio(_: Int)
Deprecation
From--
ToiOS 10.0

Modified objc_set_collection_threshold(_: Int)
Deprecation
From--
ToiOS 10.0

Declaration
From
func objc_setAssociatedObject(_ object: AnyObject!, _ key: UnsafePointer<Void>, _ value: AnyObject!, _ policy: objc_AssociationPolicy)
To
func objc_setAssociatedObject(_ object: Any!, _ key: UnsafeRawPointer!, _ value: Any!, _ policy: objc_AssociationPolicy)

Modified objc_setCollectionRatio(_: Int)
Deprecation
From--
ToiOS 10.0

Modified objc_setCollectionThreshold(_: Int)
Deprecation
From--
ToiOS 10.0

Declaration
From
func objc_setEnumerationMutationHandler(_ handler: ((AnyObject!) -> Void)!)
To
func objc_setEnumerationMutationHandler(_ handler: (@escaping (Any?) -> Swift.Void)!)

Modified objc_setExceptionMatcher(_: ObjectiveC.objc_exception_matcher!) -> ObjectiveC.objc_exception_matcher!
Declaration
From
func objc_setExceptionMatcher(_ fn: objc_exception_matcher!) -> objc_exception_matcher!
To
func objc_setExceptionMatcher(_ fn: ObjectiveC.objc_exception_matcher!) -> ObjectiveC.objc_exception_matcher!

Modified objc_setExceptionPreprocessor(_: ObjectiveC.objc_exception_preprocessor!) -> ObjectiveC.objc_exception_preprocessor!
Declaration
From
func objc_setExceptionPreprocessor(_ fn: objc_exception_preprocessor!) -> objc_exception_preprocessor!
To
func objc_setExceptionPreprocessor(_ fn: ObjectiveC.objc_exception_preprocessor!) -> ObjectiveC.objc_exception_preprocessor!

Modified objc_setForwardHandler(_: UnsafeMutableRawPointer!, _: UnsafeMutableRawPointer!)
Declaration
From
func objc_setForwardHandler(_ fwd: UnsafeMutablePointer<Void>, _ fwd_stret: UnsafeMutablePointer<Void>)
To
func objc_setForwardHandler(_ fwd: UnsafeMutableRawPointer!, _ fwd_stret: UnsafeMutableRawPointer!)

Modified objc_setUncaughtExceptionHandler(_: ObjectiveC.objc_uncaught_exception_handler!) -> ObjectiveC.objc_uncaught_exception_handler!
Declaration
From
func objc_setUncaughtExceptionHandler(_ fn: objc_uncaught_exception_handler!) -> objc_uncaught_exception_handler!
To
func objc_setUncaughtExceptionHandler(_ fn: ObjectiveC.objc_uncaught_exception_handler!) -> ObjectiveC.objc_uncaught_exception_handler!

Modified objc_start_collector_thread()
Deprecation
From--
ToiOS 10.0

Modified objc_startCollectorThread()
Deprecation
From--
ToiOS 10.0

Declaration
From
func objc_storeWeak(_ location: AutoreleasingUnsafeMutablePointer<AnyObject?>, _ obj: AnyObject!) -> AnyObject!
To
func objc_storeWeak(_ location: AutoreleasingUnsafeMutablePointer<AnyObject?>!, _ obj: Any!) -> Any!

Modified objc_sync_enter(_: Any!) -> Int32
Declaration
From
func objc_sync_enter(_ obj: AnyObject!) -> Int32
To
func objc_sync_enter(_ obj: Any!) -> Int32

Modified objc_sync_exit(_: Any!) -> Int32
Declaration
From
func objc_sync_exit(_ obj: AnyObject!) -> Int32
To
func objc_sync_exit(_ obj: Any!) -> Int32

Modified objc_uncaught_exception_handler
Declaration
From
typealias objc_uncaught_exception_handler = (AnyObject!) -> Void
To
typealias objc_uncaught_exception_handler = (Any?) -> Swift.Void

Modified objc_unregisterThreadWithCollector()
Deprecation
From--
ToiOS 10.0

Declaration
From
func object_getClass(_ obj: AnyObject!) -> AnyClass!
To
func object_getClass(_ obj: Any!) -> Swift.AnyClass!

Declaration
From
func object_getClassName(_ obj: AnyObject!) -> UnsafePointer<Int8>
To
func object_getClassName(_ obj: Any!) -> UnsafePointer<Int8>!

Declaration
From
func object_getIvar(_ obj: AnyObject!, _ ivar: Ivar) -> AnyObject!
To
func object_getIvar(_ obj: Any!, _ ivar: Ivar!) -> Any!

Declaration
From
func object_isClass(_ obj: AnyObject!) -> Bool
To
func object_isClass(_ obj: Any!) -> Bool

Declaration
From
func object_setClass(_ obj: AnyObject!, _ cls: AnyClass!) -> AnyClass!
To
func object_setClass(_ obj: Any!, _ cls: Swift.AnyClass!) -> Swift.AnyClass!

Declaration
From
func object_setIvar(_ obj: AnyObject!, _ ivar: Ivar, _ value: AnyObject!)
To
func object_setIvar(_ obj: Any!, _ ivar: Ivar!, _ value: Any!)

Declaration
From
func property_copyAttributeList(_ property: objc_property_t, _ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<objc_property_attribute_t>
To
func property_copyAttributeList(_ property: objc_property_t!, _ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<objc_property_attribute_t>!

Declaration
From
func property_copyAttributeValue(_ property: objc_property_t, _ attributeName: UnsafePointer<Int8>) -> UnsafeMutablePointer<Int8>
To
func property_copyAttributeValue(_ property: objc_property_t!, _ attributeName: UnsafePointer<Int8>!) -> UnsafeMutablePointer<Int8>!

Declaration
From
func property_getAttributes(_ property: objc_property_t) -> UnsafePointer<Int8>
To
func property_getAttributes(_ property: objc_property_t!) -> UnsafePointer<Int8>!

Declaration
From
func property_getName(_ property: objc_property_t) -> UnsafePointer<Int8>
To
func property_getName(_ property: objc_property_t!) -> UnsafePointer<Int8>!

Declaration
From
func protocol_addMethodDescription(_ proto: Protocol!, _ name: Selector, _ types: UnsafePointer<Int8>, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool)
To
func protocol_addMethodDescription(_ proto: Protocol!, _ name: Selector!, _ types: UnsafePointer<Int8>!, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool)

Declaration
From
func protocol_addProperty(_ proto: Protocol!, _ name: UnsafePointer<Int8>, _ attributes: UnsafePointer<objc_property_attribute_t>, _ attributeCount: UInt32, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool)
To
func protocol_addProperty(_ proto: Protocol!, _ name: UnsafePointer<Int8>!, _ attributes: UnsafePointer<objc_property_attribute_t>!, _ attributeCount: UInt32, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool)

Declaration
From
func protocol_copyMethodDescriptionList(_ p: Protocol!, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool, _ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<objc_method_description>
To
func protocol_copyMethodDescriptionList(_ p: Protocol!, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool, _ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<objc_method_description>!

Declaration
From
func protocol_copyPropertyList(_ proto: Protocol!, _ outCount: UnsafeMutablePointer<UInt32>) -> UnsafeMutablePointer<objc_property_t>
To
func protocol_copyPropertyList(_ proto: Protocol!, _ outCount: UnsafeMutablePointer<UInt32>!) -> UnsafeMutablePointer<objc_property_t?>!

Declaration
From
func protocol_copyProtocolList(_ proto: Protocol!, _ outCount: UnsafeMutablePointer<UInt32>) -> AutoreleasingUnsafeMutablePointer<Protocol?>
To
func protocol_copyProtocolList(_ proto: Protocol!, _ outCount: UnsafeMutablePointer<UInt32>!) -> AutoreleasingUnsafeMutablePointer<Protocol?>!

Declaration
From
func protocol_getMethodDescription(_ p: Protocol!, _ aSel: Selector, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool) -> objc_method_description
To
func protocol_getMethodDescription(_ p: Protocol!, _ aSel: Selector!, _ isRequiredMethod: Bool, _ isInstanceMethod: Bool) -> objc_method_description

Declaration
From
func protocol_getName(_ p: Protocol!) -> UnsafePointer<Int8>
To
func protocol_getName(_ p: Protocol!) -> UnsafePointer<Int8>!

Declaration
From
func protocol_getProperty(_ proto: Protocol!, _ name: UnsafePointer<Int8>, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool) -> objc_property_t
To
func protocol_getProperty(_ proto: Protocol!, _ name: UnsafePointer<Int8>!, _ isRequiredProperty: Bool, _ isInstanceProperty: Bool) -> objc_property_t!

Declaration
From
func sel_getName(_ sel: Selector) -> UnsafePointer<Int8>
To
func sel_getName(_ sel: Selector!) -> UnsafePointer<Int8>!

Declaration
From
func sel_getUid(_ str: UnsafePointer<Int8>) -> Selector
To
func sel_getUid(_ str: UnsafePointer<Int8>!) -> Selector!

Declaration
From
func sel_isEqual(_ lhs: Selector, _ rhs: Selector) -> Bool
To
func sel_isEqual(_ lhs: Selector!, _ rhs: Selector!) -> Bool

Modified sel_isMapped(_: Selector!) -> Bool
Declaration
From
func sel_isMapped(_ sel: Selector) -> Bool
To
func sel_isMapped(_ sel: Selector!) -> Bool

Declaration
From
func sel_registerName(_ str: UnsafePointer<Int8>) -> Selector
To
func sel_registerName(_ str: UnsafePointer<Int8>!) -> Selector!