Acces library swift from controller.m

Hi, I have EKAstrologyCalc imported in my project but My project is in objective c and I dont know how to access at this.

Can you help me please?
This is an example for swift

import UIKit
import CoreLocation
import EKAstrologyCalc

class ViewController: UIViewController {
Code Block
let location = CLLocation(latitude: 55.751244, longitude: 37.618423) // Moscow
var moonPhaseManager: EKAstrologyCalc!

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

let info = moonPhaseManager.getInfo(date: Date())
Code Block
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)
}
}

How to acces in objective c?? Thanks!!
As far as I checked the source code of the library. EKAstrologyCalc is written in Swift for only Swift. It has nothing to support using in Objective-C.

You may need to write huge code in Swift by yourself to make it available in Objective-C.
Or better contact to the author and ask providing an Objective-C compatible version.

One other way, move your project to Swift.
Acces library swift from controller.m
 
 
Q