Post

Replies

Boosts

Views

Activity

Comment on Date in Swift printed is wrong
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’21
Comment on Index out of range, SwiftUI
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’21
Comment on Date in Swift printed is wrong
Thank you very much
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Date in Swift printed is wrong
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Date in Swift printed is wrong
If the time is 03:00 I expect it to print "Sat, 11 Sep 2021 03:00:00 +0000", but it actually prints "Sat, 11 Sep 2021 01:00:00 +0000"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Date in Swift printed is wrong
let date = Calendar.current.dateComponents(in: .current, from: Date()).date! print(date) Even if I do this it gives me the wrong date Why?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Date in Swift printed is wrong
Can you please provide me an example?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on Date in Swift printed is wrong
And what if I wanted to use if Date() > Date() + 86400 for example, is it formatted?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’21
Comment on App increases size even if I delete data (Core Data)
Thank You!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on App increases size even if I delete data (Core Data)
--
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on @AppStorage with Date in SwiftUI
I want to be able to initialize it like this @AppStorage("date") var date = Date()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on @AppStorage with Date in SwiftUI
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on @AppStorage with Date in SwiftUI
Thank you. Is there a better way to save Date in @AppStorage?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’21
Comment on HealthKit (delete function in SwiftUI)
But I already use this delete function in my deleteFromHealthKit
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21
Comment on Index out of range, SwiftUI
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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21