Skip to content

Commit ac22b8e

Browse files
committed
Set visibility on flashButton to be public
This changes the visibility of the flash button to public so that you can change its location or hide it.
1 parent 7ef7bc3 commit ac22b8e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Sources/BarcodeScannerController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ open class BarcodeScannerController: UIViewController {
4242
lazy var infoView: InfoView = InfoView()
4343

4444
/// Button to change torch mode.
45-
lazy var flashButton: UIButton = { [unowned self] in
45+
public lazy var flashButton: UIButton = { [unowned self] in
4646
let button = UIButton(type: .custom)
4747
button.addTarget(self, action: #selector(flashButtonDidPress), for: .touchUpInside)
48-
4948
return button
5049
}()
5150

0 commit comments

Comments
 (0)