title: Check Battery Level iOS Swift
body: <p>I just started Swift and I have been looking for a way to check the battery level.  I found <a href="https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDevice_Class/index.html#//apple_ref/occ/instp/UIDevice/batteryLevel" rel="noreferrer">this resource</a> and have been playing around with it but for some reason can't seem to get it to work.</p>
  
  <p>I wasn't quite sure how to go about fixing this. Any ideas?</p>