-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Swift Package Manager support (#38)
- Loading branch information
1 parent
df5719e
commit 61e6fc8
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -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" | ||
), | ||
] | ||
) |
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 |
---|---|---|
|
@@ -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] |