Skip to content

Commit

Permalink
Add Swift Package Manager support (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
alphatroya authored Sep 28, 2019
1 parent df5719e commit 61e6fc8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// swift-tools-version:5.0
import PackageDescription

let package = Package(
name: "KeyboardManager",
platforms: [.iOS(.v9)],
products: [
.library(name: "KeyboardManager", targets: ["KeyboardManager"]),
],
targets: [
.target(
name: "KeyboardManager",
path: "Sources"
),
]
)
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ github "alphatroya/KeyboardManager"

Run `carthage update` to build the framework and drag the built KeyboardManager.framework into your Xcode project.

### Swift Package Manager (required Xcode 11)

1. Select File > Swift Packages > Add Package Dependency. Enter `https://github.com/alphatroya/KeyboardManager` in the "Choose Package Repository" dialog.
2. In the next page, specify the version resolving rule as "Up to Next Major" with "1.4" as its earliest version.
3. After Xcode checking out the source and resolving the version, you can choose the "KeyboardManager" library and add it to your app target.

## Author

Alexey Korolev, [email protected]

0 comments on commit 61e6fc8

Please sign in to comment.