-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a524a02
commit f4b263a
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
[](https://cocoapods.org/pods/PlaceholderUITextView) | ||
[](http://mit-license.org) | ||
[](https://github.com/Carthage/Carthage) | ||
|
||
|
||
`PlaceholderUITextView` is a simple subclass from UITextView with multiple line placeholder | ||
|
||
|
@@ -28,19 +30,39 @@ use_frameworks! | |
pod 'PlaceholderUITextView' | ||
``` | ||
|
||
### Carthage | ||
|
||
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. | ||
|
||
You can install Carthage with [Homebrew](https://brew.sh/) using the following command: | ||
|
||
```bash | ||
$ brew update | ||
$ brew install carthage | ||
``` | ||
|
||
To integrate PlaceholderUITextView into your Xcode project using Carthage, specify it in your `Cartfile`: | ||
|
||
```ogdl | ||
github "hoangtaiki/PlaceholderUITextView" ~> 1.1 | ||
``` | ||
|
||
Run `carthage update` to build the framework and drag the built `PlaceholderUITextView.framework` into your Xcode project. | ||
|
||
|
||
### Swift Package Manager | ||
|
||
Install with [Swift Package Manager](https://github.com/apple/swift-package-manager) by adding the following to your `Package.swift`: | ||
|
||
```swift | ||
dependencies: [ | ||
.package(url: "https://github.com/hoangtaiki/PlaceholderUITextView", from: "1.0.0"), | ||
.package(url: "https://github.com/hoangtaiki/PlaceholderUITextView", from: "1.1.0"), | ||
], | ||
``` | ||
|
||
### Submodules | ||
|
||
Or manually checkout the submodule with `git submodule add [email protected]:hoangtaiki/Refreshable.git`, drag Refreshable.xcodeproj to your project, and add Refreshable as a build dependency. | ||
Or manually checkout the submodule with `git submodule add [email protected]:hoangtaiki/PlaceholderUITextView.git`, drag PlaceholderUITextView.xcodeproj to your project, and add PlaceholderUITextView as a build dependency. | ||
|
||
|
||
## Usage | ||
|