There are a number of discussions about enumerating through CMSensorDataList around, however, they all have the same example:
extension CMSensorDataList: SequenceType {
public func generate() -> NSFastGenerator {
return NSFastGenerator(self)
}
}
Which doesn't work on ios11 for multiple reasons (NSFastGenerator
doesn't exist, SequenceType
has been renamed to Sequence
).
How do I enumerate through a CMSensorDataList
in modern swift?