Skip to content

Commit cad9061

Browse files
committed
Update readme
1 parent 075a70c commit cad9061

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,16 @@ viewController.messageViewController.textLabel.textColor = .black
181181
**Camera**
182182
```swift
183183
let viewController = BarcodeScannerViewController()
184-
viewController.barCodeFocusViewType = .animated
184+
// Change focus view style
185+
viewController.cameraViewController.barCodeFocusViewType = .animated
186+
// Show camera position button
187+
viewController.cameraViewController.showsCameraButton = true
188+
// Set settings button text
185189
let title = NSAttributedString(
186190
string: "Settings",
187191
attributes: [.font: UIFont.boldSystemFont(ofSize: 17), .foregroundColor : UIColor.white]
188192
)
189-
viewController.settingButton.setAttributedTitle(title, for: UIControlState())
193+
viewController.cameraViewController.settingButton.setAttributedTitle(title, for: UIControlState())
190194
```
191195

192196
**Metadata**

0 commit comments

Comments
 (0)