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

Commit 06a650a

Browse files
author
Satinder Singh
committed
Udpated README
1 parent 70bd4a6 commit 06a650a

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

README.md

Lines changed: 11 additions & 10 deletions
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)

SnapLayout.podspec

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'SnapLayout'
11-
s.version = '1.0.2'
11+
s.version = '1.0.4'
1212
s.summary = 'Concise API for iOS Auto Layout'
1313

1414
s.description = <<-DESC
1515
# SnapLayout
16-
Concise API for iOS Auto Layout. SnapLayout extends UIView to deliver a list of APIs to improve readability while
17-
also shortening constraint code. Internally using AutoLayout to provide the best experience. With SnapLayout,
18-
developers can pin, anchor, snap, or align views easily!
16+
Concise API for iOS Auto Layout. SnapLayout extends `UIView` to deliver a list of APIs to improve
17+
readability while also shortening constraint code. Internally uses AutoLayout to provide the best
18+
experience. With SnapLayout, developers can remove boilerplate code but not at the cost of readability.
19+
20+
Imagine applying any or all of the following constraints in one line of code: top, leading, trailing,
21+
bottom, width, height, centerX, centerY. This is possible with `SnapLayout`.
1922
DESC
2023

2124
s.homepage = 'https://github.com/sp71/SnapLayout'

0 commit comments

Comments
 (0)