Swiftpack.co - emvakar/EKAstrologyCalc as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by emvakar.
emvakar/EKAstrologyCalc v0.0.4
Astrology Calculator calculates moon's rise/set times, moon Age, moon phases and Zodiac Sign for location and time
⭐️ 50
🕓 28 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/emvakar/EKAstrologyCalc.git", from: "v0.0.4")

Swift Version example event parameter

Astrology Calculator

This is Moon Calc Framework written on Swift Get moon phase by Date and Location

What we can do right now:

  • ☑ set and rise moon
  • ☑ get moon Age
  • ☑ get moon rise
  • ☑ get moon set
  • ☑ get zodiac sign
  • ☑ get moon phase
  • ☑ get moon trajectory
  • ☑ get moon illumination
  • ☐ get moon rise if rise on past date
  • ☐ get moon set if set on future date
  • ☐ get zodiac sign rise time
  • ☐ get zodiac sign set time
  • ☐ get mercury status and times
  • ☑ get eclipse times (begin, duration, finish)
  • ☐ create UI for calendar

Support EKAstrologyCalc development by giving a ⭐️

Installation

via Swift Package Manager

    .package(url: "https://github.com/emvakar/EKAstrologyCalc.git", from: "1.0.4")

Usage

import UIKit
import CoreLocation
import EKAstrologyCalc

class ViewController: UIViewController {

    let location = CLLocation(latitude: 55.751244, longitude: 37.618423) // Moscow
    var moonPhaseManager: EKAstrologyCalc!

    override func viewDidLoad() {
        super.viewDidLoad()
        
        moonPhaseManager = EKAstrologyCalc(location: location)

        let info = moonPhaseManager.getInfo(date: Date())

        print("Current localtion: -", info.location.coordinate)

        print("Moon days at", "current date: -", info.date)
        info.moonModels.forEach {
            print("===========")
            print("Moon Age: -", $0.age)
            print("Moon rise: -", $0.moonRise)
            print("Moon set: -", $0.moonSet)
        }
        print("===========")
        print("Moon phase: -", info.phase)
        print("Moon trajectory: -", info.trajectory)
    }
}

GitHub

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

Dependencies

Release Notes

Refactoring and fix EKIllummintaion Struct
3 years ago

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