From b456f2f9be10c1d183158220b831afd22697dd68 Mon Sep 17 00:00:00 2001 From: Bruno Guidolim Date: Wed, 4 Oct 2023 11:36:12 +0200 Subject: [PATCH] Fix for tvOS --- PhoneNumberKit/PhoneNumberKit.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PhoneNumberKit/PhoneNumberKit.swift b/PhoneNumberKit/PhoneNumberKit.swift index e8d6f70a8..d191ec64e 100644 --- a/PhoneNumberKit/PhoneNumberKit.swift +++ b/PhoneNumberKit/PhoneNumberKit.swift @@ -307,7 +307,7 @@ public final class PhoneNumberKit { let locale = Locale.current #if !os(Linux) - if #available(iOS 17.0, macOS 14.0, macCatalyst 17.0, watchOS 10.0, *), + if #available(iOS 17.0, tvOS 17.0, macOS 14.0, macCatalyst 17.0, watchOS 10.0, *), let regionCode = locale.region?.identifier, regex.firstMatch(in: regionCode) != nil { return regionCode.uppercased()