Skip to content

Commit 799071b

Browse files
committed
Update README.md
1 parent fedd9dd commit 799071b

1 file changed

Lines changed: 10 additions & 27 deletions

File tree

README.md

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
Then
2-
====
1+
# Then
32

43
![Swift](https://img.shields.io/badge/Swift-3.0-orange.svg)
5-
[![Build Status](https://travis-ci.org/devxoul/Then.svg?branch=master)](https://travis-ci.org/devxoul/Then)
64
[![CocoaPods](http://img.shields.io/cocoapods/v/Then.svg)](https://cocoapods.org/pods/Then)
5+
[![Build Status](https://travis-ci.org/devxoul/Then.svg?branch=master)](https://travis-ci.org/devxoul/Then)
76
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
87

98
✨ Super sweet syntactic sugar for Swift initializers.
109

11-
12-
At a Glance
13-
-----------
10+
## At a Glance
1411

1512
Initialize UILabel **then** set its properties.
1613

@@ -34,9 +31,7 @@ let label: UILabel = {
3431
}()
3532
```
3633

37-
38-
Tips and Tricks
39-
---------------
34+
## Tips and Tricks
4035

4136
- You can use `then()` to all of `NSObject` subclasses.
4237

@@ -77,9 +72,7 @@ Tips and Tricks
7772
}
7873
```
7974

80-
81-
Real World Example
82-
------------------
75+
## Real World Example
8376

8477
Here's an example usage in an UIViewController subclass.
8578

@@ -106,26 +99,18 @@ final class MyViewController: UIViewController {
10699
}
107100
```
108101

109-
110-
Installation
111-
------------
102+
## Installation
112103

113104
- **For iOS 8+ projects** with [CocoaPods](https://cocoapods.org):
114105

115106
```ruby
116-
pod 'Then', '~> 2.1'
107+
pod 'Then'
117108
```
118109

119110
- **For iOS 8+ projects** with [Carthage](https://github.com/Carthage/Carthage):
120111

121112
```
122-
github "devxoul/Then" ~> 2.1
123-
```
124-
125-
- **For iOS 7 projects** with [CocoaSeeds](https://github.com/devxoul/CocoaSeeds):
126-
127-
```ruby
128-
github 'devxoul/Then', '2.1.0', :files => 'Sources/*.swift'
113+
github "devxoul/Then"
129114
```
130115

131116
- **Using [Swift Package Manager](https://swift.org/package-manager)**:
@@ -136,13 +121,11 @@ Installation
136121
let package = Package(
137122
name: "MyAwesomeApp",
138123
dependencies: [
139-
.Package(url: "https://github.com/devxoul/Then", "2.1.0"),
124+
.Package(url: "https://github.com/devxoul/Then", majorVersion: 2),
140125
]
141126
)
142127
```
143128

144-
145-
License
146-
-------
129+
## License
147130

148131
**Then** is under MIT license. See the [LICENSE](LICENSE) file for more info.

0 commit comments

Comments
 (0)