Skip to content

Commit efdf72d

Browse files
authored
Better Installation section
fixes #5
1 parent 3e1079b commit efdf72d

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,32 @@ A custom TextField with a switchable icon which shows or hides the password and
1919

2020
:octocat: Installation
2121
---
22-
Get `PasswordTextField` on CocoaPods, just add `pod 'PasswordTextField'` to your `Podfile` and then run `pod install`. You can also add the Github to your `Carthage` file.
22+
23+
#### CocoaPods
24+
You can use [CocoaPods](http://cocoapods.org/) to install `PasswordTextField` by adding it to your `Podfile`:
25+
26+
```ruby
27+
platform :ios, '8.0'
28+
use_frameworks!
29+
pod 'PasswordTextField'
30+
```
31+
32+
To get the full benefits import `PasswordTextField` wherever you import UIKit
33+
34+
``` swift
35+
import UIKit
36+
import PasswordTextField
37+
```
38+
#### Carthage
39+
Create a `Cartfile` that lists the framework and run `carthage bootstrap`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/PasswordTextField.framework` to an iOS project.
40+
41+
```
42+
github "PiXeL16/PasswordTextField"
43+
```
44+
45+
#### Manually
46+
1. Download and drop ```/PasswordTextField``` folder in your project.
47+
2. Congratulations!
2348

2449
:metal: Usage
2550
---

0 commit comments

Comments
 (0)