/BarometerKit

Simple framework to access the iPhone barometric pressure sensor

Primary LanguageSwiftMIT LicenseMIT

BarometerKit

Version Swift Carthage compatible GitHub license

Simple framework to access the iPhone barometric pressure sensor

Usage

import BarometerKit

let barometer = = PhoneBarometer()

barometer.start() { newValue in
    print("Barometric pressure changed:(\newValue.kPa.floatValue)")
}

Requirements

  • iOS 11.0+
  • Xcode 9 (Swift 4.0)

Installation

BarometerKit is available through Carthage. To install it, simply add the following line to your Cartfile:

github "hapticsoft/BarometerKit"