Closed ky1vstar closed 3 years ago
Currently library fails to build when targeting Mac Catalyst platform. It happens due to canImport(AppKit) pre-compile check which is true on Mac Catalyst, but many APIs like NSFont still are not available. This PR adds targetEnvironment checks.
Mac Catalyst
canImport(AppKit)
true
NSFont
targetEnvironment
Looks feasible to me, d'accord with that one @gaebel?
Well, thanks for the contribution first of all :D @ky1vstar !
Currently library fails to build when targeting
Mac Catalyst
platform. It happens due tocanImport(AppKit)
pre-compile check which istrue
onMac Catalyst
, but many APIs likeNSFont
still are not available. This PR addstargetEnvironment
checks.