From a5540846296e7022e27c5186af62fdb52dfcb630 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 13 Jan 2021 12:30:36 -0500 Subject: [PATCH] Fixed TabBar --- ProjectClock/Base.lproj/Main.storyboard | 9 +++++---- ProjectClock/NotificationLogic.swift | 11 +++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) 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() {