Simple framework to access the iPhone barometric pressure sensor
import BarometerKit
let barometer = = PhoneBarometer()
barometer.start() { newValue in
print("Barometric pressure changed:(\newValue.kPa.floatValue)")
}
- iOS 11.0+
- Xcode 9 (Swift 4.0)
BarometerKit is available through Carthage. To install it, simply add the following line to your Cartfile:
github "hapticsoft/BarometerKit"