Skip to content

Commit 2bec3f3

Browse files
authored
Installation - Swift Package Manager
1 parent c7eb48f commit 2bec3f3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ public struct UseAutoLayout<T: UIView> {
2828
@UseAutoLayout var label = UILabel()
2929
```
3030

31+
32+
## Installation
33+
34+
Property wrappers are defined in Swift 5.1.
35+
Using @UseAutoLayout requires Xcode 11.0(and above) and Swift 5.1 toolchain
36+
37+
38+
### Swift Package Manager
39+
40+
Add `.package(url: "https://github.com/bielikb/UseAutoLayout.git", from: "1.0.0")` to your
41+
`Package.swift` file's `dependencies`.
42+
43+
If youre using Xcode 11.0, add this Swift Package to your target(s).
44+
45+
——-
46+
3147
# Example
3248

3349
![Sample](assets/autolayout-1.png)

0 commit comments

Comments
 (0)