-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
tableView(_:viewForHeaderInSection:)
delegate method cannot be used when using tableView.didEndScrollingAnimationPublisher
.
To Reproduce
class MyViewController: UIViewController {
@IBOutlet private weak var tableView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
tableView.didEndScrollingAnimationPublisher
.sink { print("didEndScrollingAnimation") }
}
}
extension MyViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
// return my header view
}
}
MyViewController
is configured as a delegate of tableView
in a storyboard.
Expected behavior
tableView(_:viewForHeaderInSection:)
is called
Device:
- Device: iPhone 14
- OS: iOS 16
- 0.4.1
Additional context
RxCocoa supports this by calling tableView.rx.setDelegate(viewController)
.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working