From 8dbacdbaf82c98e57fcf19627fb00a1389279233 Mon Sep 17 00:00:00 2001 From: Jaron Lowe <> Date: Tue, 9 Aug 2022 21:48:30 -0400 Subject: [PATCH] - Fixed an issue where the "Static list item" example was not displaying data. --- Example/Example/ViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Example/Example/ViewController.swift b/Example/Example/ViewController.swift index da4735f..08b6851 100644 --- a/Example/Example/ViewController.swift +++ b/Example/Example/ViewController.swift @@ -57,11 +57,13 @@ class ViewController: UIViewController { switch demo { case .plain: // A plain list with a single section -> Publisher<[Person], Never> - first.publisher + let plainSubject = PassthroughSubject<[Person], Never>() + plainSubject.eraseToAnyPublisher() .bind(subscriber: tableView.rowsSubscriber(cellIdentifier: "Cell", cellType: PersonCell.self, cellConfig: { cell, indexPath, model in cell.nameLabel.text = "\(indexPath.section+1).\(indexPath.row+1) \(model.name)" })) .store(in: &subscriptions) + plainSubject.send(first.first!) case .multiple: // Table with sections -> Publisher<[[Person]], Never>