Skip to content

Commit

Permalink
Added Carthage and Swift Package Manager support
Browse files Browse the repository at this point in the history
  • Loading branch information
onl1ner committed Aug 8, 2020
1 parent dd33fbe commit 1311601
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 5 deletions.
14 changes: 14 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -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]
)

33 changes: 29 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion STTextView/STTextView.podspec
Original file line number Diff line number Diff line change
@@ -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."

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1130"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "920B071F24DD2C4800084AB5"
BuildableName = "STTextView.framework"
BlueprintName = "STTextView"
ReferencedContainer = "container:STTextView.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "920B071F24DD2C4800084AB5"
BuildableName = "STTextView.framework"
BlueprintName = "STTextView"
ReferencedContainer = "container:STTextView.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

0 comments on commit 1311601

Please sign in to comment.