Skip to content

Commit

Permalink
Merge pull request #932 from xmartlabs/version/2.0.1
Browse files Browse the repository at this point in the history
Eureka 2.0.1
  • Loading branch information
Martin Barreto authored Feb 15, 2017
2 parents 13fefe5 + 1791fe0 commit 8de194c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file.


### [2.0.1](https://github.com/xmartlabs/Eureka/releases/tag/2.0.1)

* Bug fixes and stability improvements.

### [2.0.0-beta.1](https://github.com/xmartlabs/Eureka/releases/tag/2.0.0)

Pull requests associated with this milestone can be found in this [filter](https://github.com/xmartlabs/Eureka/issues?utf8=%E2%9C%93&q=milestone%3A2.0.0%20).
Expand Down
4 changes: 2 additions & 2 deletions Eureka.podspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pod::Spec.new do |s|
s.name = 'Eureka'
s.version = '2.0.0-beta.1'
s.version = '2.0.1'
s.license = 'MIT'
s.summary = 'Elegant iOS Forms in pure Swift 2'
s.summary = 'Elegant iOS Forms in pure Swift'
s.homepage = 'https://github.com/xmartlabs/Eureka'
s.social_media_url = 'http://twitter.com/xmartlabs'
s.authors = { 'Martin Barreto' => '[email protected]', 'Mathias Claassen' => '[email protected]' }
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ To change the behaviour of this you should set the navigation options of your co

The default value is `enabled & skipCanNotBecomeFirstResponderRow`

To enable smooth scrolling to off-screen rows, enable it via the `animateScroll` property. By default, the `FormViewController` jumps immediately between rows when the user hits the next or previous buttons in the keyboard navigation accesory, including when the next row is off screen.
To enable smooth scrolling to off-screen rows, enable it via the `animateScroll` property. By default, the `FormViewController` jumps immediately between rows when the user hits the next or previous buttons in the keyboard navigation accesory, including when the next row is off screen.

To set the amount of space between the keyboard and the highlighted row following a navigation event, set the `rowKeyboardSpacing` property. By default, when the form scrolls to an offscreen view no space will be left between the top of the keyboard and the bottom of the row.

Expand All @@ -112,7 +112,7 @@ class MyFormViewController: FormViewController {
override func viewDidLoad() {
super.viewDidLoad()
form = ...

// Enables the navigation accessory and stops navigation when a disabled row is encountered
navigationOptions = RowNavigationOptions.Enabled.union(.StopDisabledRow)
// Enables smooth scrolling on navigation to off-screen rows
Expand Down Expand Up @@ -418,7 +418,7 @@ Additionally you can setup list of options to be grouped by sections using follo
- `sectionKeyForValue` - a closure that should return key for particular row value. This key is later used to break options by sections.

- `sectionHeaderTitleForKey` - a closure that returns header title for a section for particular key. By default returns the key itself.

- `sectionFooterTitleForKey` - a closure that returns footer title for a section for particular key.


Expand Down Expand Up @@ -450,15 +450,15 @@ override func viewDidLoad() {
<<< TextRow() {
$0.title = "Required Rule"
$0.add(rule: RuleRequired())
// This could also have been achieved using a closure that returns nil if valid, or a ValidationError otherwise.

// This could also have been achieved using a closure that returns nil if valid, or a ValidationError otherwise.
/*
let ruleRequiredViaClosure = RuleClosure<String> { rowValue in
return (rowValue == nil || rowValue!.isEmpty) ? ValidationError(msg: "Field required!") : nil
}
$0.add(rule: ruleRequiredViaClosure)
*/

$0.validationOptions = .validatesOnChange
}
.cellUpdate { cell, row in
Expand Down Expand Up @@ -855,7 +855,7 @@ source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

pod 'Eureka', '~> 2.0.0-beta.1'
pod 'Eureka', '~> 2.0'
```

Then run the following command:
Expand All @@ -871,7 +871,7 @@ $ pod install
Specify Eureka into your project's `Cartfile`:

```ogdl
github "xmartlabs/Eureka" ~> 2.0.0
github "xmartlabs/Eureka" ~> 2.0
```

#### Manually as Embedded Framework
Expand Down

0 comments on commit 8de194c

Please sign in to comment.