QRCodeReader.swift icon indicating copy to clipboard operation
QRCodeReader.swift copied to clipboard

How to lock the QR reader orientation in portrait mode?

Open zachmattopo opened this issue 7 years ago • 2 comments

I tried with locking the view controller that it was presented over, and some bugs were found with the camera viewfinder (sudden zoom in, panning camera one way will pan it the other way etc.). Thanks a bunch!

zachmattopo avatar Jun 06 '18 10:06 zachmattopo

Do you want to specifically lock the ReaderView or your application is locked to the portrait mode?

By default the library uses the the supported interface orientation of the app (key window): https://github.com/yannickl/QRCodeReader.swift/blob/master/Sources/QRCodeReaderView.swift#L154-L156.

yannickl avatar Jun 10 '18 16:06 yannickl

Thanks for replying yannickl. My app is supporting all orientations but I want to specifically lock the ReaderView to portrait mode. Any hints?

zachmattopo avatar Jun 10 '18 22:06 zachmattopo