Skip to content

Commit 05af1b0

Browse files
committed
Use topLayoutGuide
1 parent b3e52ba commit 05af1b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/BarcodeScannerController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ open class BarcodeScannerController: UIViewController {
224224
if #available(iOS 11, *) {
225225
navigationBar.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor).isActive = true
226226
} else {
227-
navigationBar.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
227+
navigationBar.topAnchor.constraint(
228+
equalTo: topLayoutGuide.bottomAnchor).isActive = true
228229
}
229230
}
230231

0 commit comments

Comments
 (0)