An open API service indexing awesome lists of open source software.

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

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

Buy Me A Coffee