| 
 | 1 | +<p align="center">  | 
 | 2 | +    <img src="Resources/Icon.png" alt="Project Icon" width="250" />  | 
 | 3 | +</p>  | 
 | 4 | + | 
 | 5 | +<p align="center">  | 
 | 6 | +    <img src="https://img.shields.io/github/v/release/danielsaidi/ScanCodes?color=%2300550&sort=semver" alt="Version" />  | 
 | 7 | +    <img src="https://img.shields.io/badge/swift-6.0-orange.svg" alt="Swift 6.0" />  | 
 | 8 | +    <a href="https://danielsaidi.github.io/ScanCodes"><img src="https://img.shields.io/badge/documentation-web-blue.svg" alt="Documentation" /></a>  | 
 | 9 | +    <a href="https://github.com/danielsaidi/ScanCodes/blob/master/LICENSE"><img src="https://img.shields.io/github/license/danielsaidi/ScanCodes" alt="MIT License" /></a>  | 
 | 10 | +    <a href="https://github.com/sponsors/danielsaidi"><img src="https://img.shields.io/badge/sponsor-GitHub-red.svg" alt="Sponsor my work" /></a>  | 
 | 11 | +</p>  | 
 | 12 | + | 
 | 13 | + | 
 | 14 | +# ScanCodes  | 
 | 15 | + | 
 | 16 | +ScanCodes is a Swift library with scan code features, such as a ``ScanCode`` SwiftUI view that can render any string value as a scan code.  | 
 | 17 | + | 
 | 18 | +<p align="center">  | 
 | 19 | +    <img src="https://github.com/danielsaidi/ScanCodes/releases/download/0.1.0/ScanCodes-Demo.gif" alt="Demo Gif" width="300" />  | 
 | 20 | +</p>  | 
 | 21 | + | 
 | 22 | +ScanCodes extends ``Image`` as well as platform-specific image types with scan code-related functionality, and has a ``ScanCodeType`` enum that defines all supported scan code types.  | 
 | 23 | + | 
 | 24 | + | 
 | 25 | + | 
 | 26 | +## Installation  | 
 | 27 | + | 
 | 28 | +ScanCodes can be installed with the Swift Package Manager:  | 
 | 29 | + | 
 | 30 | +```  | 
 | 31 | +https://github.com/danielsaidi/ScanCodes.git  | 
 | 32 | +```  | 
 | 33 | + | 
 | 34 | + | 
 | 35 | +## Supported Platforms  | 
 | 36 | + | 
 | 37 | +ScanCodes supports iOS 15, iPadOS 15, macOS 12, tvOS 15, and visionOS 1.  | 
 | 38 | + | 
 | 39 | + | 
 | 40 | + | 
 | 41 | +## Support My Work  | 
 | 42 | + | 
 | 43 | +You can [become a sponsor][Sponsors] to help me dedicate more time on my various [open-source tools][OpenSource]. Every contribution, no matter the size, makes a real difference in keeping these tools free and actively developed.  | 
 | 44 | + | 
 | 45 | + | 
 | 46 | + | 
 | 47 | +## Getting Started  | 
 | 48 | + | 
 | 49 | +To render a scan code in SwiftUI, just add a ``ScanCode`` with the value and type to render:  | 
 | 50 | + | 
 | 51 | +```swift  | 
 | 52 | +struct ContentView: View {  | 
 | 53 | + | 
 | 54 | +    var body: some View {  | 
 | 55 | +        ScanCode(  | 
 | 56 | +            value: "123456789",   | 
 | 57 | +            type: .qr,   | 
 | 58 | +            scale: 5,  | 
 | 59 | +            rotation: .pi/4  | 
 | 60 | +        )  | 
 | 61 | +    }  | 
 | 62 | +}  | 
 | 63 | +```  | 
 | 64 | + | 
 | 65 | +You can use the same init arguments to create a SwiftUI ``SwiftUICore/Image`` and platform-specific image values.  | 
 | 66 | + | 
 | 67 | + | 
 | 68 | + | 
 | 69 | +## Documentation  | 
 | 70 | + | 
 | 71 | +The online [documentation][Documentation] has more information, articles, code examples, etc.  | 
 | 72 | + | 
 | 73 | + | 
 | 74 | + | 
 | 75 | +## Demo Application  | 
 | 76 | + | 
 | 77 | +The `Demo` folder has a demo app that lets you explore the library.  | 
 | 78 | + | 
 | 79 | + | 
 | 80 | + | 
 | 81 | +## Contact  | 
 | 82 | + | 
 | 83 | +Feel free to reach out if you have questions, or want to contribute in any way:  | 
 | 84 | + | 
 | 85 | +* Website: [danielsaidi.com][Website]  | 
 | 86 | +* E-mail: [daniel.saidi@gmail.com][Email]  | 
 | 87 | +* Bluesky: [@danielsaidi@bsky.social][Bluesky]  | 
 | 88 | +* Mastodon: [@danielsaidi@mastodon.social][Mastodon]  | 
 | 89 | + | 
 | 90 | + | 
 | 91 | + | 
 | 92 | +## License  | 
 | 93 | + | 
 | 94 | +ScanCodes is available under the MIT license. See the [LICENSE][License] file for more info.  | 
 | 95 | + | 
 | 96 | + | 
 | 97 | + | 
 | 98 | +[Email]: mailto:daniel.saidi@gmail.com  | 
 | 99 | +[Website]: https://danielsaidi.com  | 
 | 100 | +[GitHub]: https://github.com/danielsaidi  | 
 | 101 | +[OpenSource]: https://danielsaidi.com/opensource  | 
 | 102 | +[Sponsors]: https://github.com/sponsors/danielsaidi  | 
 | 103 | + | 
 | 104 | +[Bluesky]: https://bsky.app/profile/danielsaidi.bsky.social  | 
 | 105 | +[Mastodon]: https://mastodon.social/@danielsaidi  | 
 | 106 | +[Twitter]: https://twitter.com/danielsaidi  | 
 | 107 | + | 
 | 108 | +[Documentation]: https://danielsaidi.github.io/ScanCodes  | 
 | 109 | +[Getting-Started]: https://danielsaidi.github.io/ScanCodes/documentation/scancodes/getting-started  | 
 | 110 | +[License]: https://github.com/danielsaidi/ScanCodes/blob/master/LICENSE  | 
0 commit comments