qazwini / athan

High precision Islamic prayer time library for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Athan

Athan is a well tested and well documented library for calculating Islamic prayer times. This is a fork of Adhan Swift with added customization.

Installation

Swift Package Manager

For SPM add the following to your Package.swift file:

// swift-tools-version:4.2
dependencies: [
    .package(url: "https://github.com/qazwini/athan", .branch("main")),
]

Manually

You can also manually add Athan.

  • Download the source.
  • Add Athan.xcodeproj as a subproject in your app's project.
  • Drag Athan.framework to "Linked Frameworks and Libraries" in your app's target.

Usage

To get prayer times initialize the PrayerTimes struct passing in coordinates, date, and calculation parameters.

let prayerTimes = PrayerTimes(prayers: prayers, coordinates: coordinates, date: date, calculationParameters: params)

About

High precision Islamic prayer time library for Swift

License:MIT License


Languages

Language:Swift 100.0%