https://github.com/thejohnlima/moonkit
π MoonKit is a short framework to get information about the moon
https://github.com/thejohnlima/moonkit
cocoapods ios moon moon-phase moonage swift swift-package-manager
Last synced: 11 months ago
JSON representation
π MoonKit is a short framework to get information about the moon
- Host: GitHub
- URL: https://github.com/thejohnlima/moonkit
- Owner: thejohnlima
- License: mit
- Created: 2020-02-02T04:29:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-08T00:23:53.000Z (almost 3 years ago)
- Last Synced: 2025-06-09T09:09:47.975Z (12 months ago)
- Topics: cocoapods, ios, moon, moon-phase, moonage, swift, swift-package-manager
- Language: Swift
- Homepage:
- Size: 40 KB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MoonKit
π **MoonKit** Is a short framework to get information about the moon
## βοΈRequirements
- iOS 9.0+
- Swift 5.0+
## β Installation
### Swift Package Manager
**MoonKit** is available through [SPM](https://developer.apple.com/videos/play/wwdc2019/408/). To install
it, follow the steps:
```script
Open Xcode project > File > Swift Packages > Add Package Dependecy
```
After that, put the url in the field: `https://github.com/thejohnlima/MoonKit.git`
### CocoaPods
**MoonKit** is available through [CocoaPods](https://cocoapods.org/pods/MoonKit). To install
it, simply add the following line to your Podfile:
```ruby
pod 'MoonKit'
```
and run `pod install`
## π How to use
Import library in your file:
```Swift
import MoonKit
```
```swift
let date = Date()
let moon = Moon(date)
let info = moon.info
print(info.phase) // Example: Full Moon
print(info.age) // Example: 14
print(info.isLeapYear) // Example: true
```
## ππ»β Communication
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request. π¨π»βπ»
## π License
**MoonKit** is under MIT license. See the [LICENSE](https://raw.githubusercontent.com/thejohnlima/MoonKit/master/LICENSE?token=ALdmBr7BYPLFm0JcKkmChbVeGU10EblTks5cgHzcwA%3D%3D) file for more info.
## βοΈ Support
