Skip to content

Unit conversion Swift library, with other relevant information.

License

Notifications You must be signed in to change notification settings

RandomHashTags/swift-units

Repository files navigation

swift-units

Unit conversion Swift library, with other relevant information. Built on top of HugeNumbers.

Installation

Requirements

  • Swift >= 5.7
  • macOS >= 13.0
  • iOS >= 16.0
  • tvOS >= 16.0
  • watchOS >= 9.0

Swift Package Manager

.package(url: "https://github.com/RandomHashTags/swift-units.git", from: "1.2.0")

Current features

Units

  • Acceleration
  • Action
  • Area
  • Density
  • Electric Charge
  • Electric Current
  • Electric Potential
  • Electric Power
  • Electric Resistance
  • Energy
  • Force
  • Frequency
  • Heat Capacity
  • Illuminance
  • Length
  • Luminous Flux
  • Luminous Intensity
  • Magnetic Induction
  • Mass
  • Pressure
  • Speed
  • Substance
  • Temperature
  • Time
  • Volume

Contributing

Adding/improving functionality is always welcome, just make a PR.

Funding

Support the development of this project by sponsoring the developers.

License

Public Domain. Creative Commons Zero v1.0 Universal.