Skip to content

Commit

Permalink
Bump version to 0.9.1
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
bcylin committed Apr 17, 2018
1 parent e2878b0 commit a444f17
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .jazzy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ github_url: https://github.com/bcylin/QuickTableViewController
github_file_prefix: https://github.com/bcylin/QuickTableViewController/blob/develop
xcodebuild_arguments: [-project, QuickTableViewController.xcodeproj, -scheme, QuickTableViewController-iOS]
module: QuickTableViewController
module_version: 0.9.0
module_version: 0.9.1
output: docs/output
theme: fullwidth
skip_undocumented: true
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## `develop` branch
## v0.9.1

#### Fixes

Expand Down
2 changes: 1 addition & 1 deletion Example-iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.9.0</string>
<string>0.9.1</string>
<key>CFBundleVersion</key>
<string>101</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
2 changes: 1 addition & 1 deletion Example-iOSUITests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.9.0</string>
<string>0.9.1</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion QuickTableViewController-iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.9.0</string>
<string>0.9.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion QuickTableViewController-iOSTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.9.0</string>
<string>0.9.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion QuickTableViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "QuickTableViewController"
s.version = "0.9.0"
s.version = "0.9.1"
s.summary = "A simple way to create a UITableView for settings."
s.screenshots = "https://bcylin.github.io/QuickTableViewController/img/screenshot-1.png",
"https://bcylin.github.io/QuickTableViewController/img/screenshot-2.png"
Expand Down
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ NavigationRow(title: "UITableViewCellStyle", subtitle: .leftAligned(".value2"))
#### Images

* Images in table view cells can be set by specifying the `icon` of each row.
* The `Icon` carries info about images for both normal and highlighted states.
* Table view cells in `UITableViewCellStyle.value2` will not show the image view.

```swift
Expand All @@ -91,8 +90,8 @@ NavigationRow(title: "Cell with image", subtitle: .none, icon: icon)

#### Disclosure Indicator

* A `NavigationRow` with an `action` will be displayed in a table view cell whose `accessoryType` is `.disclosureIndicator`.
* The `action` will be invoked when the related table view cell is selected.
* A `NavigationRow` with an `action` will be displayed in a table view cell with `.disclosureIndicator`.
* The `action` will be invoked when the table view cell is selected.

```swift
NavigationRow(title: "Navigation cell", subtitle: .none, action: { (sender: Row) in })
Expand All @@ -111,26 +110,25 @@ SwitchRow(title: "Switch", switchValue: true, action: { (sender: Row) in }),
### TapActionRow

* A `TapActionRow` is representing a button-like table view cell.
* The `action` will be invoked when the related table view cell is selected.
* `Icon` is disabled in `TapActionRow`.
* The `action` will be invoked when the table view cell is selected.
* The icon and subtitle are disabled in `TapActionRow`.

```swift
TapActionRow(title: "Tap action", action: { (sender: Row) in })
```

### OptionRow & RadioSection

* An `OptionRow` is representing a selectable table view cell.
* When the row `isSelected`, the table view cell shows `.checkmark` as its `accessoryType`.
* The `action` will be invoked when the selection is toggled.
* An `OptionRow` is representing a table view cell with `.checkmark`.
* The `action` will be invoked when the selected state is toggled.
* The subtitle is disabled in `OptionRow`.

```swift
OptionRow(title: "Option", isSelected: true, action: { (sender: Row) in })
```

* `OptionRow` can be used with or without `RadioSection`, which allows only one selection.
* `RadioSection` allows all options unselected by default. Set `alwaysSelectsOneOption` to true to keep one option selected.
* `OptionRow` can be used with or without `RadioSection`, which allows only one selected option.
* All options can be unselected in `RadioSection` by default. Setting `alwaysSelectsOneOption` to true will keep one of the options selected.

## Customization

Expand Down Expand Up @@ -196,17 +194,17 @@ protocol RowStyle {
}
```

The `customize` closure overwrites the `Configurable` changes.
The `customize` closure overwrites the `Configurable` setup.

### UIAppearance

As discussed in issue [#12](https://github.com/bcylin/QuickTableViewController/issues/12), UIAppearance customization works when the cell is dequeued from the storyboard. One way to work around this is to register nib objects to the table view. Check out [AppearanceViewController](https://github.com/bcylin/QuickTableViewController/blob/develop/Example/ViewControllers/AppearanceViewController.swift) for the setups.
As discussed in issue [#12](https://github.com/bcylin/QuickTableViewController/issues/12), UIAppearance customization works when the cell is dequeued from the storyboard. One way to work around this is to register nib objects to the table view. Check out [AppearanceViewController](https://github.com/bcylin/QuickTableViewController/blob/develop/Example/ViewControllers/AppearanceViewController.swift) for the setup.

## Limitation

> When to use **QuickTableViewController**?

QuickTableViewController is good for presenting static table contents, where the sections and rows don't need to change dynamically after `viewDidLoad`.
QuickTableViewController is good for presenting static table contents, where the sections and rows don't change dynamically after `viewDidLoad`.

It's possible to update the table contents by replacing a specific section or row. Using different styles on each row requires additional configuration as described in the [Customization](#customization) section.

Expand Down

0 comments on commit a444f17

Please sign in to comment.