Skip to content

Commit 1bbd169

Browse files
committed
fix a problem animated is not working
1 parent e3073a7 commit 1bbd169

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/BarcodeScannerController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ open class BarcodeScannerController: UIViewController {
324324
}
325325
}
326326

327-
if barCodeFocusViewType == .twoDimentions {
328-
center(subview: focusView, inSize: CGSize(width: 218, height: 150))
329-
} else {
327+
if barCodeFocusViewType == .oneDimention {
330328
center(subview: focusView, inSize: CGSize(width: 280, height: 80))
329+
} else {
330+
center(subview: focusView, inSize: CGSize(width: 218, height: 150))
331331
}
332332
center(subview: settingsButton, inSize: CGSize(width: 150, height: 50))
333333

0 commit comments

Comments
 (0)