Skip to content

Commit

Permalink
Updated .podspec and README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarm committed Jun 26, 2016
1 parent 1c25145 commit 10843a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions BetterSegmentedControl.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "BetterSegmentedControl"
s.version = "0.3"
s.version = "0.4"
s.summary = "An easy to use, customizable replacement for UISegmentedControl & UISwitch."
s.description = <<-DESC
BetterSegmentedControl is an easy to use, customizable replacement for UISegmentedControl and UISwitch written in Swift.
Expand All @@ -9,7 +9,7 @@ s.homepage = "https://github.com/gmarm/BetterSegmentedControl"
# s.screenshots = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
s.license = 'MIT'
s.author = { "George Marmaridis" => "[email protected]" }
s.source = { :git => "https://github.com/gmarm/BetterSegmentedControl.git", :tag => "0.3" }
s.source = { :git => "https://github.com/gmarm/BetterSegmentedControl.git", :tag => "0.4" }
s.social_media_url = 'https://twitter.com/gmarmas'
s.platform = :ios, '8.0'
s.requires_arc = true
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ BetterSegmentedControl is available through [CocoaPods](http://cocoapods.org). T
it, simply add the following line to your Podfile:

```ruby
pod 'BetterSegmentedControl', '~> 0.3'
pod 'BetterSegmentedControl', '~> 0.4'
```

### Carthage

If you prefer using [Carthage](https://github.com/Carthage/Carthage), simply add BetterSegmentedControl to your `Cartfile`:

```ruby
github "gmarm/BetterSegmentedControl" ~> 0.3
github "gmarm/BetterSegmentedControl" ~> 0.4
```

### Manually
Expand All @@ -57,6 +57,7 @@ let control = BetterSegmentedControl(
indicatorViewBackgroundColor: UIColor(red:0.55, green:0.26, blue:0.86, alpha:1.00),
selectedTitleColor: .blackColor())
control.titleFont = UIFont(name: "HelveticaNeue", size: 14.0)!
control.titleFont = UIFont(name: "HelveticaNeue-Medium", size: 14.0)!
control.addTarget(self, action: #selector(ViewController.controlValueChanged(_:)), forControlEvents: .ValueChanged)
view.addSubview(control)
```
Expand All @@ -66,15 +67,14 @@ You can find different ways of using it (such as by designing it in a Storyboard

- [ ] Make initializer failable if not enough titles are passed.
- [ ] Set titles via method that throws.
- [ ] Add a `selectedTitleFont` property.
- [ ] Allow the control to have no selected index.
- [ ] Allow UIViews that implement a protocol to be used as options.
- [ ] Add moar tests!
- [ ] ~~Try to take over the world!~~ Uh, what?

## Contribution

Feel free to Fork, submit Pull Requests or send me your feedback and suggestions! However do make sure that tests are passing before submitting a new Pull Request.
Feel free to Fork, submit Pull Requests or send me your feedback and suggestions! Please make sure that tests are passing before submitting a new Pull Request.

## Author

Expand Down

0 comments on commit 10843a2

Please sign in to comment.