After updating Xcode to 14 suddenly I'm unable to build our app, getting the error
'Currency' is only available in iOS 16 or newer
but we've been using Currency already as our backend model:
struct Currency: Equatable {
let code: String
let symbol: String
let localizedString: String
}
We getting the error when using Currency here:
extension Locale {
static let availableCurrencies: [Currency] = Currency.availableCurrencies
}