Skip to content

Commit

Permalink
Fix for tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
bguidolim committed Oct 4, 2023
1 parent ac85fea commit b456f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhoneNumberKit/PhoneNumberKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b456f2f

Please sign in to comment.