Skip to content

Commit 2de6805

Browse files
committed
Update README.md
1 parent f9bd317 commit 2de6805

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
SwiftValidator
22
===============
33

4+
[![Build Status](https://travis-ci.org/jpotts18/SwiftValidator.svg?branch=travis-ci)](https://travis-ci.org/jpotts18/SwiftValidator)
5+
46
Swift Validator is a rule-based validation library for Swift.
57

68
![Swift Validator](/swift-validator-v2.gif)
@@ -11,29 +13,37 @@ Swift Validator is a rule-based validation library for Swift.
1113
* ``UITextField`` + ``ValidationError`` come out of ``Validator``
1214
* ``Validator`` evaluates ``[Rule]`` sequentially and stops evaluating when a ``Rule`` fails.
1315

14-
## Quick Start
16+
## Installation
1517

1618
```ruby
1719
# Podfile
1820
source 'https://github.com/CocoaPods/Specs.git'
1921
platform :ios, "8.1"
2022

2123
use_frameworks!
22-
pod 'SwiftValidator', '3.0.0'
24+
pod 'SwiftValidator', '3.0.1'
2325
```
2426

2527
Install into your project:
2628

27-
```
29+
```bash
2830
$ pod install
2931
```
3032

3133
Open your project in Xcode from the .xcworkspace file (not the usual project file):
3234

33-
```
35+
```bash
3436
$ open MyProject.xcworkspace
3537
```
3638

39+
If you are using Carthage you will need to add this to your `Cartfile`
40+
41+
```bash
42+
github “jpotts18/SwiftValidator”
43+
```
44+
45+
## Usage
46+
3747
You can now import SwiftValidator framework into your files.
3848

3949
Initialize the ``Validator`` by setting a delegate to a View Controller or other object.

0 commit comments

Comments
 (0)