BarcodeScanner
BarcodeScanner copied to clipboard
showsCameraButton is inverted
Code in question:
CameraViewController.swift
public var showsCameraButton: Bool = false {
didSet {
cameraButton.isHidden = showsCameraButton
}
}
Input true -> CameraButton is hidden Input false -> CameraButton is visible
There are 2 easy ways to fix this:
- rename variable to 'hideCameraButton'
- add boolean inversion '!' inside didSet block
Thanks for the awesome pod undeaD_D