Posts

Post not yet marked as solved
1 Replies
107 Views
How do I force my device into landscape orientation on tap of a button using SwiftUI
Posted Last updated
.
Post not yet marked as solved
1 Replies
172 Views
How do I unwind from the destination of my Navigation Link back to the parent view.
Posted Last updated
.
Post marked as solved
1 Replies
236 Views
I need to compare an attribute of Date data type with current date and check if it has a difference of 7 days or more. I tried this but its not working: if (Calendar.current.dateComponents([.day], from: resident.infectionDate ?? Date.distantPast, to: Date.now) < 7) Error: Referencing operator function '<' on 'BinaryInteger' requires that 'DateComponents' conform to 'BinaryInteger'
Posted Last updated
.