Skip to content

Commit

Permalink
Merge pull request #17 from jaysoifer/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
Danilo Topalovic authored Sep 9, 2016
2 parents 1cb30d5 + 96f354e commit 2ea0e97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ pod 'SwiftValidate'
```

and then run `pod install` in your directory as usual.

Of course you can use it in [Carthage] as well

```
Expand All @@ -79,6 +81,12 @@ github "dtop/SwiftValidate"
All validators are usable completely on their own but one of the main advantages of `SwiftValidate` is that the validators are chainable.
Add as many validators to a single chain as you need for properly validate your value.

Add
```import SwiftValidate```
to your View Controller.

And then, you're all setup to start using it:

```swift
let validatorChain = ValidatorChain() {
$0.stopOnFirstError = true
Expand Down

0 comments on commit 2ea0e97

Please sign in to comment.