Skip to content

Commit

Permalink
Merge pull request #6 from rlaguilar/update-readme
Browse files Browse the repository at this point in the history
Update Readme file to indicate Swift Package Manager support
  • Loading branch information
rlaguilar authored Feb 8, 2020
2 parents cbfbea7 + ef1c1bb commit 9656eb1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ First of all you have to import the library `import MultilineTextField`.

After that just create an instance of the view an customize its properties:

````
```swift
let textField = MultiplelineTextField(frame: textFieldFrame)
textField.leftView = UIImageView(image: image)
// or use the convenience property:
Expand All @@ -35,7 +35,7 @@ textField.placeholderColor = UIColor.red
textField.isPlaceholderScrollEnabled = true
textField.leftViewOrigin = CGPoint(x: 8, y: 8)
someView.addSubview(textField)
````
```

## Example

Expand All @@ -47,8 +47,13 @@ It requires Swift 4 and Xcode 9 or above

## Installation

MultilineTextField is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
MultilineTextField is available through Swift Package Manager and also [CocoaPods](http://cocoapods.org).

### Swift Package Manager
Select File > Swift Packages > Add Package Dependency. Enter `https://github.com/rlaguilar/MultilineTextField.git` in the "Choose Package Repository" dialog.

### CocoaPods
Simply add the following line to your Podfile:

```ruby
pod 'MultilineTextField'
Expand Down

0 comments on commit 9656eb1

Please sign in to comment.