Skip to content

Commit d1ef99a

Browse files
Update README.md
1 parent b6f3576 commit d1ef99a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ qrCodeController.customPreviewView = previewLabel
6868

6969
qrCodeController.cameraFoundHandler = { [weak previewLabel] value in
7070
previewLabel?.text = value
71+
72+
switch result {
73+
case .text(let string):
74+
previewLabel?.text = string
75+
case .url(let url):
76+
previewLabel?.text = url.absoluteString
77+
case .ethWallet(let string):
78+
label.text = string
79+
}
7180
}
7281

7382
viewController.present(qrCodeController, animated: true, completion: nil)

0 commit comments

Comments
 (0)