Documentation Archive Developer
Search

CoreMotion Changes for Swift

CoreMotion

Protocols
FromAnyObject
To--

Modified CMAltimeter
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified CMAttitude
DeclarationProtocols
From
class CMAttitude : NSObject, NSCopying, NSSecureCoding, NSCoding {
    var roll: Double { get }
    var pitch: Double { get }
    var yaw: Double { get }
    var rotationMatrix: CMRotationMatrix { get }
    var quaternion: CMQuaternion { get }
    func multiplyByInverseOfAttitude(_ attitude: CMAttitude)
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class CMAttitude : NSObject, NSCopying, NSSecureCoding {
    var roll: Double { get }
    var pitch: Double { get }
    var yaw: Double { get }
    var rotationMatrix: CMRotationMatrix { get }
    var quaternion: CMQuaternion { get }
    func multiplyByInverseOfAttitude(_ attitude: CMAttitude)
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

DeclarationProtocols
From
struct CMError : RawRepresentable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
RawRepresentable
To
struct CMError : RawRepresentable, Equatable {
    init(_ rawValue: UInt32)
    init(rawValue rawValue: UInt32)
    var rawValue: UInt32
}
Equatable, RawRepresentable

Modified CMGyroData
Protocols
FromAnyObject
To--

Modified CMLogItem
DeclarationProtocols
From
class CMLogItem : NSObject, NSSecureCoding, NSCoding, NSCopying {
    var timestamp: NSTimeInterval { get }
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class CMLogItem : NSObject, NSSecureCoding, NSCopying {
    var timestamp: NSTimeInterval { get }
}
NSCopying, NSSecureCoding

DeclarationProtocols
From
struct CMMagneticFieldCalibrationAccuracy : RawRepresentable {
    init(_ rawValue: Int32)
    init(rawValue rawValue: Int32)
    var rawValue: Int32
}
RawRepresentable
To
struct CMMagneticFieldCalibrationAccuracy : RawRepresentable, Equatable {
    init(_ rawValue: Int32)
    init(rawValue rawValue: Int32)
    var rawValue: Int32
}
Equatable, RawRepresentable

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified CMPedometer
Protocols
FromAnyObject
To--

DeclarationProtocols
From
class CMPedometerData : NSObject, NSSecureCoding, NSCoding, NSCopying {
    var startDate: NSDate { get }
    var endDate: NSDate { get }
    var numberOfSteps: NSNumber { get }
    var distance: NSNumber? { get }
    var floorsAscended: NSNumber? { get }
    var floorsDescended: NSNumber? { get }
    var currentPace: NSNumber? { get }
    var currentCadence: NSNumber? { get }
}
AnyObject, NSCoding, NSCopying, NSSecureCoding
To
class CMPedometerData : NSObject, NSSecureCoding, NSCopying {
    var startDate: NSDate { get }
    var endDate: NSDate { get }
    var numberOfSteps: NSNumber { get }
    var distance: NSNumber? { get }
    var floorsAscended: NSNumber? { get }
    var floorsDescended: NSNumber? { get }
    var currentPace: NSNumber? { get }
    var currentCadence: NSNumber? { get }
}
NSCopying, NSSecureCoding

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, NSFastEnumeration
ToNSFastEnumeration

Protocols
FromAnyObject
To--

Modified CMStepCounter
Protocols
FromAnyObject
To--