twostraws / CodeScanner

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

can't hidden status bar in scan view #88

Open rhybroy opened 1 year ago

rhybroy commented 1 year ago

when call an CodeScannerView and set StatusBar to hidden, it won't work. the StatusBar still showed. hot to fix?

//swiftui test struct view
var body: some View {
        CodeScannerView(codeTypes: [.qr], manualSelect: true, showViewfinder: false) { response in
            if case let .success(result) = response {
                print(result.string)
            }
        }.edgesIgnoringSafeArea(.all)
            .statusBar(hidden: true)
}