Skip to content

Commit 30cc929

Browse files
committed
2 parents 36e2f41 + 378bd74 commit 30cc929

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ controller.dismissalDelegate = self
5151
presentViewController(controller, animated: true, completion: nil)
5252
```
5353

54-
<img src="https://github.com/hyperoslo/BarcodeScanner/blob/master/Art/ExampleScanning.png" alt="BarcodeScanner scanning" align="center" />
54+
<div align="center">
55+
<img src="https://github.com/hyperoslo/BarcodeScanner/blob/master/Art/ExampleScanning.png" alt="BarcodeScanner scanning" width="270" height="480" />
56+
</div><br/>
5557

5658
You can also push `BarcodeScannerController` to your navigation stack:
5759

@@ -110,7 +112,9 @@ extension ViewController: BarcodeScannerDismissalDelegate {
110112
When the code is captured `BarcodeScannerController` switches to the processing
111113
mode:
112114

113-
<img src="https://github.com/hyperoslo/BarcodeScanner/blob/master/Art/ExampleLoading.png" alt="BarcodeScanner loading" align="center" />
115+
<div align="center">
116+
<img src="https://github.com/hyperoslo/BarcodeScanner/blob/master/Art/ExampleLoading.png" alt="BarcodeScanner loading" width="270" height="480" />
117+
</div><br/>
114118

115119
While the user see a nice loading animation you can perform some
116120
background task, for example make a network request to fetch product info based
@@ -128,7 +132,9 @@ func barcodeScanner(controller: BarcodeScannerController, didCapturedCode code:
128132
2. Show an error message and switch back to the scanning mode (for example,
129133
when there is no product found with a given barcode in your database):
130134

131-
<img src="https://github.com/hyperoslo/BarcodeScanner/blob/master/Art/ExampleError.png" alt="BarcodeScanner error" align="center" />
135+
<div align="center">
136+
<img src="https://github.com/hyperoslo/BarcodeScanner/blob/master/Art/ExampleError.png" alt="BarcodeScanner error" width="270" height="480" />
137+
</div><br/>
132138

133139
```swift
134140
func barcodeScanner(controller: BarcodeScannerController, didCapturedCode code: String) {

0 commit comments

Comments
 (0)