twostraws / CodeScanner

A SwiftUI view that is able to scan barcodes, QR codes, and more, and send back what was found.
MIT License
1.02k stars 293 forks source link

Add support for use with macOS Catalyst (14.0+) #41

Closed T4cC0re closed 2 years ago

T4cC0re commented 3 years ago

Fixes #33.

This adds macOS 11 as a platform (== macCatalyst v14.0), which prevents linking failures, and marks the classes as available from macCatalyst 14.0+ which prevents compile failures.

A #available directive cannot be used, as a swift package is compiled and linked regardless of the importing project's target SDK.

twostraws commented 2 years ago

Thank you!