Installation
Gitty is distributed as a Swift Package. It requires Swift 5.9+ and supports iOS 16+ and macOS 13+.
Swift Package Manager
Section titled “Swift Package Manager”- Open your project in Xcode
- Go to File → Add Package Dependencies…
- Enter the repository URL:
https://github.com/RonenMars/Gitty
- Set the version to
from: "0.1.0" - Click Add Package
Package.swift
Section titled “Package.swift”Add Gitty to your Package.swift dependencies:
dependencies: [ .package(url: "https://github.com/RonenMars/Gitty", from: "0.1.0"),],Then add it to your target:
targets: [ .target( name: "YourTarget", dependencies: ["Gitty"] ),]Import
Section titled “Import”import GittyThat’s it. No system dependencies, no CMake, no Homebrew — Gitty bundles libgit2 as a pure SPM package.