https://github.com/kodekarim/idevicesinformation
A Light Weight and Updated Code for Device Detection and many other functionality written in swift 2.0
https://github.com/kodekarim/idevicesinformation
battery-percentage device device-detection ios swift
Last synced: 11 months ago
JSON representation
A Light Weight and Updated Code for Device Detection and many other functionality written in swift 2.0
- Host: GitHub
- URL: https://github.com/kodekarim/idevicesinformation
- Owner: kodekarim
- Created: 2015-12-28T05:38:22.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-28T06:46:55.000Z (over 10 years ago)
- Last Synced: 2025-05-05T15:46:58.273Z (about 1 year ago)
- Topics: battery-percentage, device, device-detection, ios, swift
- Language: Swift
- Size: 25.4 KB
- Stars: 14
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iDevicesInformation
A Light Weight and Updated Code for Device Detection and many other functionality written in swift 2.0
#How To Use
Just import the source file to your project and you are ready to go..
#Implementation
#To Know the device type
let device = Device ()
deviceType.text = "\(device)"
#To Know Device name
deviceName.text = UIDevice.currentDevice().name
#To Know iOS Version
iOSVersion.text = UIDevice.currentDevice().systemVersion
#To Check Battery Status
device.batteryState == .Charging(65)
Here "65" is the battery percentage to track
For example if the device battery percentage is more then 90
Then graphic quality = HIGH
for reference see the code....