diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..9699c38 --- /dev/null +++ b/Package.swift @@ -0,0 +1,14 @@ +// swift-tools-version:5.1 +import PackageDescription + +let package = Package( + name: "STTextView", + + platforms: [.iOS(.v10)], + + products: [ .library(name: "STTextView", targets: ["STTextView"]) ], + targets: [ .target(name: "STTextView", path: "STTextView/STTextView") ], + + swiftLanguageVersions: [.v5] +) + diff --git a/README.md b/README.md index 7dd9aa4..a75522b 100644 --- a/README.md +++ b/README.md @@ -18,21 +18,46 @@ Framework is compatible with Swift 5. ## Installation -``STTextView`` is available through [CocoaPods](https://cocoapods.org). +``STTextView`` is available through [CocoaPods](https://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage) and [Swift Package Manager](https://github.com/apple/swift-package-manager) + +### CocoaPods - Add the following line into your Podfile: - ```ruby + ```ruby pod 'STTextView' ``` - Then run this command in your terminal: - ```bash + ```bash $ pod install ``` -- Now you have a UITextView with a placeholder! +### Carthage +- Add the following line into your Cartfile: + + ``` + github "onl1ner/STTextView" + ``` + +- And run the next command in terminal: + + ```bash + $ carthage update + ``` + +### Swift Package Manager +- In Xcode select: + + ``File > Swift Packages > Add Package Dependency...`` + +- Then paste this URL: + + ``https://github.com/onl1ner/STTextView.git`` + +### Manually +You could also install it manually. Just drag and drop the ``STTextView.swift`` file into your Xcode project. ## Usage diff --git a/STTextView/STTextView.podspec b/STTextView/STTextView.podspec index 4d9baf7..60fd649 100644 --- a/STTextView/STTextView.podspec +++ b/STTextView/STTextView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "STTextView" - spec.version = "1.0.3" + spec.version = "1.1.0" spec.summary = "STTextView is a light-weight CocoaPod that adds a placeholder to the UITextView." diff --git a/STTextView/STTextView.xcodeproj/project.xcworkspace/xcuserdata/onl1ner.xcuserdatad/UserInterfaceState.xcuserstate b/STTextView/STTextView.xcodeproj/project.xcworkspace/xcuserdata/onl1ner.xcuserdatad/UserInterfaceState.xcuserstate index 1986007..bd61928 100644 Binary files a/STTextView/STTextView.xcodeproj/project.xcworkspace/xcuserdata/onl1ner.xcuserdatad/UserInterfaceState.xcuserstate and b/STTextView/STTextView.xcodeproj/project.xcworkspace/xcuserdata/onl1ner.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/STTextView/STTextView.xcodeproj/xcshareddata/xcschemes/STTextView.xcscheme b/STTextView/STTextView.xcodeproj/xcshareddata/xcschemes/STTextView.xcscheme new file mode 100644 index 0000000..a134902 --- /dev/null +++ b/STTextView/STTextView.xcodeproj/xcshareddata/xcschemes/STTextView.xcscheme @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +