Update README.md
This is Moon Calc Framework written on Swift Get moon phase by Date and Location
.package(url: "https://github.com/emvakar/EKAstrologyCalc.git", from: "1.0.4")
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) } }
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Astrology Calculator
This is Moon Calc Framework written on Swift Get moon phase by Date and Location
What we can do right now:
Support EKAstrologyCalc development by giving a ⭐️
Installation
via Swift Package Manager
Usage