Skip to content

Commit

Permalink
Merge pull request #55 from gmertk/release_2.3
Browse files Browse the repository at this point in the history
Update docs, podspec, and package definition for v2.3 release
  • Loading branch information
bwhtmn authored Dec 21, 2023
2 parents 4c192c9 + fbd6a45 commit d88f3a1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ DerivedData
Carthage/Build

.DS_Store
.swiftpm
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2
5.0
8 changes: 4 additions & 4 deletions GMStepper.podspec
Original file line number Diff line number Diff line change
@@ -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
9 changes: 4 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
),
]
)
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d88f3a1

Please sign in to comment.