Closed mohmando closed 5 years ago
i think i found a soulution by using
let nextdate = Calendar.current.date(byAdding: .day, value: index, to: Date())
kit.calcDate = nextdate
let dayInt = Calendar.current.component(.day, from: nextdate!)
let monthInt = Calendar.current.component(.month, from: nextdate!)
let yearInt = Calendar.current.component(.year, from: nextdate!)
let kitTimes = kit.getDatePrayerTimes(year: yearInt, month: monthInt, day: dayInt, latitude: locationCoord().0, longitude: locationCoord().1, tZone: 2)
i just want to get the times for the next 5 days , problem that it print the same times every day so what should i do ?