Swiftpack.co - thejohnlima/MoonKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by thejohnlima.
thejohnlima/MoonKit 1.0.5
πŸŒ— MoonKit is a short framework to get information about the moon
⭐️ 12
πŸ•“ 38 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/thejohnlima/MoonKit.git", from: "1.0.5")

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. To install it, follow the steps:

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. To install it, simply add the following line to your Podfile:

pod 'MoonKit'

and run pod install

πŸŽ“ How to use

Import library in your file:

import MoonKit
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 file for more info.

β˜•οΈ Support

Buy Me A Coffee

GitHub

link
Stars: 12
Last commit: 38 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

Version 1.0.5
4 years ago
  • Improve moon's age calculation to be more accurate;

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics