marmelroy / PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.
MIT License
5.14k stars 818 forks source link

visionOS Support #739

Closed GerryCSwift closed 7 months ago

GerryCSwift commented 9 months ago

Currently, when visionOS is selected as a target, compile fails in UIFont+Init as no provision for visionOS is present. I suspect the package would need just a tweak to the code below, but I am a new developer and decided not to attempt a fix myself...

#if os(macOS)
import AppKit
public typealias NativeFont = NSFont
public typealias NativeFontDescriptor = NSFontDescriptor
#elseif os(iOS)
import UIKit
public typealias NativeFont = UIFont
public typealias NativeFontDescriptor = UIFontDescriptor
#endif
github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.