Skip to content

Commit cb7a063

Browse files
authored
Merge pull request #167 from andychowhh/patch-1
Update README.md
2 parents e9ee609 + 8b78f4f commit cb7a063

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ You can provide a variety of extra customization options to `CodeScannerView` in
3636
- `showViewfinder` determines whether to show a box-like viewfinder over the UI. Default: false.
3737
- `simulatedData` allows you to provide some test data to use in Simulator, when real scanning isn’t available. Default: an empty string.
3838
- `shouldVibrateOnSuccess` allows you to determine whether device should vibrate when a code is found. Default: true.
39-
- `videoCaptureDevice` allows you to choose different capture device that is most suitable for code to scan.
39+
- `videoCaptureDevice` allows you to choose different capture device that is most suitable for code to scan.
40+
- `isTorchOn` turns on/off the phone’s torch/flashlight. Default: `false`
4041

4142
If you want to add UI customization, such as a dedicated Cancel button, you should wrap your `CodeScannerView` instance in a `NavigationView` and use a `toolbar()` modifier to add whatever buttons you want.
4243

0 commit comments

Comments
 (0)