Installation

Installation

The Swift Package Manager (opens in a new tab) is a tool for automating the distribution of Swift code and is integrated into the swift compiler.

It is the recommended way to install Gravity.

Once you have your Swift package set up, adding Gravity as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/pr1mer-tech/Gravity.git", .upToNextMajor(from: "2.0.0"))
]