This is a demo app and not a library which you can use in your project. In this I have used Core Motion framework and according to that recognised sleep of last 7 days. #sleep-tracking #coremotion #swift #coremotionactivity