PrayerTimesSwift
Prayer Times provides a set of handy functions to calculate prayer times for any location around the world
Install / Use
/learn @alhazmy13/PrayerTimesSwiftREADME
PrayerTimesSwift
Prayer Times provides a set of handy functions to calculate prayer times for any location around the world, based on a variety of calculation methods currently used in Muslim communities.
You can report any issue on issues page. Note: If you speak Arabic, you can submit issues with Arabic language and I will check them. :)
Requirements
Installation
Just add this line to your Podfile
pod 'PrayerTimesSwift'
Now run pod install
Create an PrayerTime
You will need to create a new instance of PrayerTime. Once the instance are configured, you can call getPrayerTimes().
let myPrayerTime = PrayerTimes(caculationMethod: .makkah, asrJuristic: .shafii, adjustHighLats: .none, timeFormat: .time12)
let prayerTimes = myPrayerTime.getPrayerTimes(date: .current, latitude: 24.7136, longitude: 46.6753, tZone: 3)
Configurations
TimeFormatTo change the time format to:time2424-hour formattime1212-hour formattime12NS12-hour format with no suffixfloatingfloating point number
myPrayerTime.timeFormat = .time24
CaculationmethodTo change the Calculation Methods.karachiUniversity of Islamic Sciences, KarachiisnaIslamic Society of North America (ISNA)mwlMuslim World League (MWL)makkahUmm al-Qura, MakkahegyptEgyptian General Authority of SurveyjafariIthna AsharitehranInstitute of Geophysics, University of TehrancustomCustom Setting
myPrayerTime.caculationMethod = .makkah
AsrJuristicTo change Juristic Method for AsrshafiiShafii (standard)hanafiHanafi
myPrayerTime.asrJuristic = .shafii
AdjustHighLatsAdjusting Methods for Higher LatitudesnoneNo adjustmentmidNightmiddle of nightoneSeventh1/7th of nightangleBasedangle/60th of night
myPrayerTime.adjustHighLats = .none
tuneTimesTune timings for adjustments
myPrayerTime.tuneTimes([0,0,0,0,0,0,0])
Author
Abdullah Alhazmy
Credits
License
PrayerTimesSwift is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
