Skip to content

Commit f26140f

Browse files
authored
Adds Stevia shorter syntax
1 parent 920b108 commit f26140f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ override func viewDidLoad() {
3131
}
3232
```
3333

34+
**Bonus**: if you're using [Stevia](https://github.com/freshOS/Stevia), this gets even more concise \o/
35+
```swift
36+
button.Bottom == view.keyboardLayoutGuide.Top
37+
```
38+
3439
If you add your view in Interface Builder, don't forget to enable the "**Remove at build time**" checkbox for the bottom constraint:
3540

3641
<img src="Images/constraint.png" width=258>

0 commit comments

Comments
 (0)