ios widget showing what is available at chucks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add timeout and fix identifiers

+3 -3
+3 -3
Shared/ChucksShared.swift
··· 23 23 public let name: String 24 24 public let allergens: [Allergen] 25 25 26 - public nonisolated var id: String { name } 26 + public nonisolated var id: Int { hashValue } 27 27 28 28 public init(name: String, allergens: [Allergen]) { 29 29 self.name = name ··· 37 37 public let slot: String 38 38 public let items: [MenuItem] 39 39 40 - public nonisolated var id: String { "\(venue)-\(slot)" } 40 + public nonisolated var id: Int { hashValue } 41 41 42 42 public init(venue: String, meal: String?, slot: String, items: [MenuItem]) { 43 43 self.venue = venue ··· 309 309 throw ChucksError.invalidURL 310 310 } 311 311 312 - var request = URLRequest(url: url) 312 + var request = URLRequest(url: url, timeoutInterval: 30) 313 313 request.setValue("*/*", forHTTPHeaderField: "Accept") 314 314 request.setValue("https://www.cedarville.edu", forHTTPHeaderField: "Origin") 315 315 request.setValue("https://www.cedarville.edu/offices/the-commons", forHTTPHeaderField: "Referer")