Closed marsix closed 2 years ago
`import UIKit import Adhan
class ViewController: UIViewController {
override func viewDidLoad() { super.viewDidLoad() let cal = Calendar(identifier: Calendar.Identifier.gregorian) let date = cal.dateComponents([.year, .month, .day], from: Date()) let coordinates = Coordinates(latitude: 35.78056, longitude: -78.6389) var params = CalculationMethod.moonsightingCommittee.params params.madhab = .hanafi if let prayers = PrayerTimes(coordinates: coordinates, date: date, calculationParameters: params) { let formatter = DateFormatter() formatter.timeStyle = .medium formatter.timeZone = TimeZone(identifier: "America/New_York")! print("fajr \(formatter.string(from: prayers.fajr))") print("sunrise \(formatter.string(from: prayers.sunrise))") print("dhuhr \(formatter.string(from: prayers.dhuhr))") print("asr \(formatter.string(from: prayers.asr))") print("maghrib \(formatter.string(from: prayers.maghrib))") print("isha \(formatter.string(from: prayers.isha))") } } }`
`import UIKit import Adhan
class ViewController: UIViewController {