A quick implementation with Swift of how to use the accelermeter and gyroscope in IOS 8.