CoreMotion Changes for Swift
CoreMotion
Modified CMAccelerometerData
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMAltimeter
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMAltitudeData
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMAttitude
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified CMDeviceMotion
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMError [struct]
| Declaration | Protocols | |
|---|---|---|
| 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 | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMLogItem
| Declaration | Protocols | |
|---|---|---|
| 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 |
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified CMMagnetometerData
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMMotionActivity
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMMotionActivityConfidence [enum]
| Protocols | |
|---|---|
| From | Equatable, Hashable, RawRepresentable |
| To | -- |
Modified CMMotionActivityManager
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMMotionManager
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMPedometer
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMPedometerData
| Declaration | Protocols | |
|---|---|---|
| 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 |
Modified CMRecordedAccelerometerData
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |
Modified CMSensorDataList
| Protocols | |
|---|---|
| From | AnyObject, NSFastEnumeration |
| To | NSFastEnumeration |
Modified CMSensorRecorder
| Protocols | |
|---|---|
| From | AnyObject |
| To | -- |