You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,24 @@ The structure of the library is simple: there's only one class that you use and
18
18
19
19
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.
20
20
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
+
21
39
## Author
22
40
23
41
[Andrea Mario Lufino](andrealufino.com), iOS developer since 2010.
0 commit comments