Cannot find name 'AccelerationData'


#1

I have created a sample app using the exact same code shown in the Device motion documentation:

When trying to compile I get the cannot find name 'AccelerationData'. What should I do to fix this ?


#2

I was just missing the import for AccelerationData…