Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
insub4067 committed Dec 6, 2023
1 parent 260ffe0 commit c8d511b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ lazy var tableView = TableViewBuilder()
.setDataSource(self)
.setTranslatesAutoresizing()
.addToSuperView(self.view)
.registerCell(UITableViewCell.self, identifier: "UITableViewCell")
.registerView(HeaderView.self, "HeaderViewe")
.registerCell(
UITableViewCell.self,
identifier: "UITableViewCell")
.registerView(
HeaderView.self,
"HeaderView")
.bind(items: $items, &cancellables, self.buildTableViewCell(_:_:_:))
.build()

Expand Down Expand Up @@ -124,10 +128,11 @@ lazy var collectionView = CollectionViewBuilder()
.registerView(
HeaderView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader,
withReuseIdentifier: HeaderView.identifier
)
withReuseIdentifier: HeaderView.identifier)
.setRefreshControl(self.refresh)
.registerCell(CustomCollectionCell.self, identifier: "CustomCollectionCell")
.registerCell(
CustomCollectionCell.self,
identifier: "CustomCollectionCell")
.bind(items: $items, &cancellables, buildCollectionViewCell(_:_:_:))
.setTranslatesAutoresizing()
.addToSuperView(self.view)
Expand Down

0 comments on commit c8d511b

Please sign in to comment.