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)
}
when call an CodeScannerView and set StatusBar to hidden, it won't work. the StatusBar still showed. hot to fix?