Skip to content

Commit 33f4a0b

Browse files
committed
Update README.md
1 parent 2fce283 commit 33f4a0b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ A registration for the table view’s cells similar to `UICollectionView.CellReg
4646

4747
Use a cell registration to register table cell views with your table view and configure each cell for display.
4848

49-
The following example creates a cell registration for cells of type `UITableViewCell`. Each cells textfield displays its item.
49+
The following example creates a cell registration for cells of type `UITableViewCell` and string items. Each cells textfield displays its item string.
5050

5151
```swift
5252
let cellRegistration = UITableView.CellRegistration<UITableViewCell, String> { cell, indexPath, string in
@@ -75,9 +75,11 @@ let dataSource = UITableViewDiffableDataSource(tableView: myTableView, cellRegis
7575
}
7676
```
7777

78-
## UITableView Header/Footer View Registration
78+
## UITableView Section View Registration
7979

80-
A registration for the table view’s header/footer views.
80+
A registration for the table view’s header/footer section views.
81+
82+
The following example creates a section view registration for views of type `UITableViewHeaderFooterView` for sections with strings. Each section header views default content configuration text displays its section string.
8183

8284
```swift
8385
let sectionViewRegistration = UITableView.SectionViewRegistration<UITableViewHeaderFooterView, String> {
@@ -97,7 +99,7 @@ dataSource.headerViewProvider = { tableView, section in
9799
}
98100
```
99101

100-
You can also ``applyHeaderViewRegistration()`` and `applyFooterViewRegistration()``:
102+
Alternatively you can also ``applyHeaderViewRegistration()`` and `applyFooterViewRegistration()``:
101103

102104
```swift
103105
dataSource.applyHeaderViewRegistration(sectionViewRegistration)

0 commit comments

Comments
 (0)