diff --git a/ProjectClock/Base.lproj/Main.storyboard b/ProjectClock/Base.lproj/Main.storyboard index 24f2f6b..a6eb690 100644 --- a/ProjectClock/Base.lproj/Main.storyboard +++ b/ProjectClock/Base.lproj/Main.storyboard @@ -1,8 +1,9 @@ - + - + + @@ -499,8 +500,8 @@ - - + + diff --git a/ProjectClock/NotificationLogic.swift b/ProjectClock/NotificationLogic.swift index e662b33..e491d08 100644 --- a/ProjectClock/NotificationLogic.swift +++ b/ProjectClock/NotificationLogic.swift @@ -6,6 +6,17 @@ // import Foundation +import CoreMotion + +let motionManager = CMMotionManager() + +func getAccelerometer() { + motionManager.startAccelerometerUpdates() + + if let accelerometerData = motionManager.accelerometerData { + print(accelerometerData) + } +} func walkAction() {