You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,10 @@
4
4
5
5
#### Enhancements
6
6
7
+
* Swift 4.2, [#20](https://github.com/bcylin/QuickTableViewController/pull/20) by [@getaaron](https://github.com/getaaron) and [#28](https://github.com/bcylin/QuickTableViewController/pull/28) by [@ mttcrsp](https://github.com/mttcrsp)
8
+
* tvOS UI tests, [#27](https://github.com/bcylin/QuickTableViewController/pull/27) by [@FraDeliro](https://github.com/FraDeliro)
9
+
*`Subtitle` is deprecated and will be removed in [**v2.0.0**](https://github.com/bcylin/QuickTableViewController/releases/tag/v2.0.0)
7
10
* Rename `Row`'s title and subtitle to text and detail text to align with `UITableViewCell`'s naming
8
-
*`Subtitle` is deprecated and will be removed in **v2.0.0**
9
11
* Enable **detailText** in `OptionRow` and `SwitchRow`
10
12
* Add **accessoryButtonAction** to `NavigationRow`
[`Subtitle`](https://github.com/bcylin/QuickTableViewController/blob/develop/Source/Model/Subtitle.swift) and the [initializers with title/subtitle](https://github.com/bcylin/QuickTableViewController/blob/develop/Source/Model/Deprecated.swift) are deprecated and will be removed in **v2.0.0**.
84
+
85
+
#### Accessory Type
86
+
87
+
* The `NavigationRow` shows with different accessory types based on the `action` and `accessoryButtonAction` closures:
88
+
89
+
```swift
90
+
var accessoryType: UITableViewCell.AccessoryType {
91
+
switch (action, accessoryButtonAction) {
92
+
case (nil, nil):return .none
93
+
case (.some, nil):return .disclosureIndicator
94
+
case (nil, .some):return .detailButton
95
+
case (.some, .some):return .detailDisclosureButton
96
+
}
97
+
}
98
+
```
84
99
85
-
* A `NavigationRow` with an `action` will be displayed in a table view cell with `.disclosureIndicator`.
86
100
* The `action` will be invoked when the table view cell is selected.
101
+
* The `accessoryButtonAction` will be invoked when the accessory button is selected.
87
102
88
103
#### Images
89
104
@@ -102,32 +117,31 @@ enum Icon {
102
117
103
118
* A `SwitchRow` is representing a table view cell with a `UISwitch` as its `accessoryView`.
104
119
* The `action` will be invoked when the switch value changes.
105
-
* The subtitle is disabled in `SwitchRow `.
106
120
107
121
### TapActionRow
108
122
109
123
* A `TapActionRow` is representing a button-like table view cell.
110
124
* The `action` will be invoked when the table view cell is selected.
111
-
* The iconand subtitle are disabled in `TapActionRow`.
125
+
* The icon, detail text, and accessory type are disabled in `TapActionRow`.
112
126
113
127
### OptionRow
114
128
115
129
* An `OptionRow` is representing a table view cell with `.checkmark`.
116
-
* The subtitle is disabled in `OptionRow`.
117
130
* The `action` will be invoked when the selected state is toggled.
118
131
119
132
```swift
120
-
letdidToggleOption: (Row) ->Void= { [weakself] in
133
+
letdidToggleSelection: (Row) ->Void= { [weakself] in
The `customize` closure overwrites the `Configurable` setup.
210
+
The `customize` closure [overwrites](https://github.com/bcylin/QuickTableViewController/blob/develop/Source/QuickTableViewController.swift#L104-L109) the `Configurable` setup.
197
211
198
212
### UIAppearance
199
213
@@ -203,6 +217,7 @@ As discussed in issue [#12](https://github.com/bcylin/QuickTableViewController/i
203
217
204
218
* `UISwitch` is replaced by a checkmark in `SwitchCell`.
205
219
* `TapActionCell` does not use center aligned text.
220
+
* `NavigationRow.accessoryButtonAction` is not available.
0 commit comments