Closed TimoReusch closed 2 years ago
Created a new function daysTillBirthdayExact
, that returns a Text-Object instead of a Int.
Implementation snippet:
if(birthdayToday == false && daysTillBirthday == 0){
return Text("\(image) Tomorrow 🎈")
} else if(birthdayToday == true && daysTillBirthday == 0){
return Text("\(image) Today 🥳").foregroundColor(.red)
}
When there is less then one day left until the birthday, 0 Days are shown. Instead, the hours or something like "tomorrow" should be displayed.