Thank you very much for your help.
It is true that formatting the date and then converting it to string prints the right date, however I cannot compare dates anymore if I convert them to strings.
Because in my project I am trying to compare dates and not just integers.
Thank you very much for your time.
But in this case
@AppStorage("date") var date = Date().rawValue, date isn't a Date, it's a Double
So if I try to bound it in a DatePicker it won't work
The problem is not the onTapGesture (also the onTapGesture is a placeholder), the problem is that valor[I] has fewer elements than valoriAsseX, I want if values [I] doesn't exist it becomes 0. Don't look at the onTapGesture, it's not a problem for now
Sorry for the English.
Thank you very much for your help.
It is true that formatting the date and then converting it to string prints the right date, however I cannot compare dates anymore if I convert them to strings.
Because in my project I am trying to compare dates and not just integers.
Thank you very much for your time.
But in this case
@AppStorage("date") var date = Date().rawValue, date isn't a Date, it's a Double
So if I try to bound it in a DatePicker it won't work
The problem is not the onTapGesture (also the onTapGesture is a placeholder), the problem is that valor[I] has fewer elements than valoriAsseX, I want if values [I] doesn't exist it becomes 0. Don't look at the onTapGesture, it's not a problem for now
Sorry for the English.