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
{{ message }}
This repository was archived by the owner on Sep 15, 2019. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+11-10
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,12 @@ Concise API for iOS Auto Layout. SnapLayout extends `UIView` to deliver a list o
10
10
Imagine applying any or all of the following constraints in one line of code: top, leading, trailing, bottom, width, height, centerX, centerY. This is possible with `SnapLayout`.
11
11
12
12
### Table of Contents
13
-
1.[Setup](#setup)
14
-
*[Requirements](#requirements)
15
-
*[Installation](#installation)
16
-
2.[Usage](#usage)
17
-
*[Sample Code](#sample-Code)
18
-
*[Example App](#example-app)
13
+
1.[Setup](#setup)
14
+
* [Requirements](#requirements)
15
+
* [Installation](#installation)
16
+
1.[Usage](#usage)
17
+
* [Sample Code](#sample-code)
18
+
* [Example App](#example-app)
19
19
20
20
## Setup
21
21
### Requirements
@@ -36,15 +36,16 @@ it, simply add the following line to your Podfile:
36
36
pod "SnapLayout"
37
37
```
38
38
39
-
## Overview
40
-
SnapLayout offers many `UIView` extension methods available in the [source files](SnapLayout/SnapLayout/Classes/SnapLayout.swift).
39
+
## Usage
40
+
41
+
### Overview
41
42
42
43
* All methods are prefixed with `snap` for quick Xcode autocomplete.
43
44
* Directly uses NSLayoutAnchor under the hood so the API is developer friendly
44
-
* Any view using `SnapLayout` will not only have its `translatesAutoresizingMaskIntoConstraints` set to false, but also have its constraint activated.
45
+
* Any view using `SnapLayout` will not only have its `translatesAutoresizingMaskIntoConstraints` set to `false`, but also have its constraint activated.
45
46
* Amazing constraint situations such as snapping a button to the label on top of it is an effortless process now: `button.snapVertically(topView: label, constant: 8)`
0 commit comments