diff --git a/.gitignore b/.gitignore index 49f5752..3733c5a 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ DerivedData Carthage/Build .DS_Store +.swiftpm diff --git a/.swift-version b/.swift-version index 8012ebb..6e63660 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -4.2 \ No newline at end of file +5.0 \ No newline at end of file diff --git a/GMStepper.podspec b/GMStepper.podspec index fc0aa5c..2be38db 100644 --- a/GMStepper.podspec +++ b/GMStepper.podspec @@ -1,16 +1,16 @@ Pod::Spec.new do |s| s.name = "GMStepper" - s.version = "2.2" + s.version = "2.3" s.summary = "A stepper with a sliding label in the middle." s.homepage = "https://github.com/gmertk/GMStepper" s.screenshots = "https://raw.githubusercontent.com/gmertk/GMStepper/master/Screenshots/screenshot_1.gif" s.license = 'MIT' s.authors = { "Gunay Mert Karadogan" => "mertkaradogan@gmail.com", - "Brent Whitman" => "brent@pathym.com" } + "Brent Whitman" => "bwhtmn@gmail.com" } s.source = { :git => "https://github.com/gmertk/GMStepper.git", :tag => s.version.to_s } s.social_media_url = 'https://twitter.com/gunaymertk' - s.platform = :ios, '8.0' + s.platform = :ios, '12.0' s.requires_arc = true s.source_files = 'GMStepper/*.swift' - s.swift_version = '4.2' + s.swift_version = '5.0' end diff --git a/Package.swift b/Package.swift index f68a927..3502727 100644 --- a/Package.swift +++ b/Package.swift @@ -6,17 +6,16 @@ import PackageDescription let package = Package( name: "GMStepper", products: [ - // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "GMStepper", - targets: ["GMStepper"]), + targets: ["GMStepper"] + ), ], targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "GMStepper", dependencies: [], - path: "GMStepper") + path: "GMStepper" + ), ] ) diff --git a/README.md b/README.md index 679e23a..68e69c7 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,25 @@ A stepper with a sliding label in the middle. Pan the label or tap the buttons. ## Usage -GMStepper is available through [CocoaPods](http://cocoapods.org). To install -it, simply add the following lines to your Podfile: +GMStepper is available through [CocoaPods](http://cocoapods.org) and [Swift Package Manager](https://www.swift.org/package-manager/). + +### Cocoapods + +To install using Cocoapods, simply add the following lines to your Podfile: ```ruby use_frameworks! pod "GMStepper" ``` +### Swift Package Manager + +To install using Swift Package Manager in XCode: + +- File > Swift Packages > Add Package Dependency +- Add https://github.com/gmertk/GMStepper +- Select "Up to Next Major" with "2.3" + ## Setup If you want to use storyboards, just drop a UIView into your storyboard and set its class to `GMStepper`. Then customize through the attributes inspector. Otherwise, you can write the code to initialize with frame and set the properties.