diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..2ad079e --- /dev/null +++ b/Package.swift @@ -0,0 +1,20 @@ + + // swift-tools-version:5.2 + // The swift-tools-version declares the minimum version of Swift required to build this package. + import PackageDescription + + let package = Package( + name: "ALFormInput", + platforms: [.iOS(.v9)], + products: [ + .library( + name: "ALFormInput", + targets: ["ALFormInput"]), + ], + targets: [ + .target( + name: "ALFormInput", + dependencies: [], + path: "ALFormInput") + ] + ) diff --git a/README.md b/README.md index cb85c86..d42f958 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,16 @@ To run the example project, clone the repo, and run `pod install` from the Examp ## Installation +## Swift Package Manager + +Once you have your Swift package set up, adding ALFormInput as a dependency is as easy as adding it to the dependencies value of your Package.swift. + ``` + dependencies: [ + .package(url: "https://github.com/applogistdev/ALFormInput.git", from: "'0.2.7") + ] + ``` + +### Cocoapods ALFormInput is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: