Just follow the steps and it should work again: Menubar → Product → Destination → Destination Architectures → Show Both Run the project on a device you desire, but with Rosetta. (i.e., iPhone 14 Pro Max (Rosetta)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protocol Storyboarded { | |
static var name: String { get } | |
static func instantiate() -> UIViewController | |
} | |
extension Storyboarded where Self: UIViewController { | |
static var name: String { return "Main" } | |
static func instantiate() -> UIViewController { | |
let storyboard = UIStoryboard(name: name, bundle: .main) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"questions":[ | |
{ | |
"id": 0, | |
"query":"We can return multiple values from a function using?", | |
"answers":[ | |
{ | |
"correct":true, | |
"title":"Tuple" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Referenaces | |
// https://developer.apple.com/videos/play/wwdc2021/10095/ | |
// https://swiftly.dev/async-await | |
// https://www.avanderlee.com/swift/async-await/ | |
// https://swiftsenpai.com/swift/async-await-network-requests/ | |
enum CustomError: Error { | |
case invalidRequest | |
case unsupportedImage | |
} |