Skip to content
This repository was archived by the owner on Sep 15, 2019. It is now read-only.

Commit 2fef115

Browse files
author
Satinder Singh
committed
Udpated README
1 parent 70bd4a6 commit 2fef115

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Concise API for iOS Auto Layout. SnapLayout extends `UIView` to deliver a list o
1010
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`.
1111

1212
### 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)
1919

2020
## Setup
2121
### Requirements
@@ -36,15 +36,16 @@ it, simply add the following line to your Podfile:
3636
pod "SnapLayout"
3737
```
3838

39-
## Overview
40-
SnapLayout offers many `UIView` extension methods available in the [source files](SnapLayout/SnapLayout/Classes/SnapLayout.swift).
39+
## Usage
40+
41+
### Overview
4142

4243
* All methods are prefixed with `snap` for quick Xcode autocomplete.
4344
* 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.
4546
* 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)`
4647

47-
## Usage
48+
4849
### [`UIView`](SnapLayout/Classes/SnapLayout.swift) extension methods
4950
```swift
5051
func snap(to view: UIView? = nil, top: CGFloat? = nil, leading: CGFloat? = nil, bottom: CGFloat? = nil, trailing: CGFloat? = nil, width: CGFloat? = nil, height: CGFloat? = nil, centerX: Bool? = nil, centerY: Bool? = nil)

0 commit comments

Comments
 (0)