// // ContentView.swift // RIT Dining // // Created by Campbell on 8/31/25. // import SwiftUI struct Location: Hashable { let name: String let todaysHours: [String] let isOpen: openStatus } struct ContentView: View { @State private var isLoading = true @State private var rotationDegrees: Double = 0 @State private var diningLocations: [Location] = [] @State private var lastRefreshed: Date? private var animation: Animation { .linear .speed(0.1) .repeatForever(autoreverses: false) } // Asynchronously fetch the data for all of the locations and parse their data to display it. private func getDiningData() { var newDiningLocations: [Location] = [] getDiningLocation { result in DispatchQueue.global().async { switch result { case .success(let locations): for i in 0..