Xcode – How do I get the total time in hours and minutes from an selected start time to a selected end time?
I've created a swiftui form with DatePickers for a startTime and an EndTime. I want to display the total and update it from an empty string to the hour and minute (example 10hrs 30min). @State private var startTime = Date()…