Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b1f0c40

Browse files
committedAug 17, 2022
Merge branch 'release/1.0.1'
2 parents dcdf4aa + 0e50976 commit b1f0c40

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
 

‎README.md

+18
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@ The structure of the library is simple: there's only one class that you use and
1818

1919
Every method returns a `UIImage` object or throws an error. The error enumeration is `QRDispenserError`. The code is well documented about every method, if you need more details check directly on Xcode.
2020

21+
There's also a nice thing that I plan to expand in the future that is an extension for `URL`. The extension has a computed property that returns a QR code containing the url, if the url is a network url (no local ones for now). It works like this:
22+
23+
```swift
24+
let url = "https://andrealufino.com"
25+
26+
let qrImage = url.qrRepresentation
27+
```
28+
29+
I'd like to expand this kind of structure also to other types, like strings, contacts and events.
30+
31+
## iOS version
32+
33+
This library needs at least iOS 14.
34+
35+
## Installation
36+
37+
The library is available via Swift Package Manager. Just add the url of this repository.
38+
2139
## Author
2240

2341
[Andrea Mario Lufino](andrealufino.com), iOS developer since 2010.

‎qrcode.png

-86.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Failed to load comments.