File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -181,12 +181,16 @@ viewController.messageViewController.textLabel.textColor = .black
181181** Camera**
182182``` swift
183183let 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
185189let 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**
You can’t perform that action at this time.
0 commit comments