Swiftpack.co - Package - emvakar/EKAstrologyCalc

Swift Version Cocoapods Build Status

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)

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: 16

Dependencies

Used By

Total: 0

Releases

Refactoring and fix EKIllummintaion Struct - 2020-09-23 17:11:38

Add moon illumination - 2020-09-04 14:52:42

Taurus not been displayed - 2020-08-02 21:06:20

fix taurus detection

Added eclipse info - 2019-04-16 21:38:01

Added eclipse info

Pre-release - 2019-04-02 09:41:21

Add Tests - 2019-03-27 11:02:56

Update for travis and adds some simple tests

Alpha version - 2019-03-23 15:18:03

  • [x] set and rise moon
  • [x] get moon Age
  • [x] get moon rise
  • [x] get moon set
  • [x] get zodiac sign
  • [x] get moon phase
  • [x] get moon trajectory
  • [ ] get zodiac sign rise time
  • [ ] get zodiac sign set time
  • [ ] get mercury status