Skip to content

Commit b255880

Browse files
authored
Merge pull request #61 from hyperoslo/expose/flash-button-in-public-api
Set visibility on flashButton to be public
2 parents 7ef7bc3 + ac22b8e commit b255880

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)