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

Alternate orientation and rotation support #2

Closed mattmaddux closed 4 years ago

mattmaddux commented 4 years ago

Currently CodeScanner only works correctly if your device (or app) is locked to portrait. If your app needs to use another orientation it won't show correctly. This allows it to launch with another orientation (for me it mattered when using an iPad in portrait), and allows you to rotate even when the view is visible.

twostraws commented 4 years ago

Thank you!