We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @ishkawa ,
I need your help, i'm trying to insert new data or cell, but when i run collectionView.reloadData(), nothing happen,
final class AdvancedVenueDetailViewController: UIViewController { @IBOutlet private weak var collectionView: UICollectionView! private let dataSource = CollectionViewDataSource<AdvancedVenueDetailViewState.CellDeclaration> { cellDeclaration in switch cellDeclaration { case .outline(let venue): return VenueOutlineCell.makeBinder(value: venue) case .sectionHeader(let title): return SectionHeaderCell.makeBinder(value: title) case .review(let review): return ReviewCell.makeBinder(value: review) case .relatedVenue(let venue): return RelatedVenueCell.makeBinder(value: venue) } } private var state = AdvancedVenueDetailViewState() override func viewDidLoad() { super.viewDidLoad() let layout = collectionView.collectionViewLayout as! UICollectionViewFlowLayout layout.estimatedItemSize = UICollectionViewFlowLayout.automaticSize collectionView.dataSource = dataSource dataSource.cellDeclarations = state.cellDeclarations DispatchQueue.main.asyncAfter(deadline: .now() + 5) { self.state.reviews.append(Review(authorImage: #imageLiteral(resourceName: "Kaminarimon_at_night"), authorName: "Yosuke Ishikawa", body: "Lorem ipsum.")) self.collectionView.reloadData() } } }
please help me :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi @ishkawa ,
I need your help, i'm trying to insert new data or cell, but when i run collectionView.reloadData(), nothing happen,
please help me :)
The text was updated successfully, but these errors were encountered: