Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,16 @@ let isNighttime = solar.isNighttime

## Installation

Solar is available through Swift Package Manager.

### Swift Package Manager

To include Solar in an application in Xcode:

1. Go to File ‣ Swift Packages ‣ Add Package Dependency.
1. Enter `https://github.com/ceeK/Solar.git` as the package repository and click Next.
1. Set Rules to Version, Up to Next Major, and enter `4.0.0` as the minimum version requirement. Click Next.

To include Solar in another Swift package, add the following [dependency](https://developer.apple.com/documentation/swift_packages/package/dependency) to your Package.swift:
Solar is available through the Swift Package Manager. Add it to the `dependencies` value of your `Package.swift`:

```swift
.package(name: "Solar", url: "https://github.com/ceeK/Solar.git", from: "4.0.0")
dependencies: [
.package(url: "https://github.com/ceeK/Solar.git", .upToNextMajor(from: "4.0.0"))
]
```

Or in Xcode: **File ▸ Add Package Dependencies…** and enter `https://github.com/ceeK/Solar.git` as the package URL.

# License

Solar is available under the MIT license. See the [LICENSE](LICENSE) file for details.
Loading