You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I think I found a bug: If you call contentView.frame.size inside your bindViewModel method, it returns the size of the xib (in storyboard), not the size of the cell, which was specified in the sectionController(_ sectionController: ListBindingSectionController<ListDiffable>, sizeForViewModel viewModel: Any, at index: Int).
This bug also occurs in the IGListKit-Binding-Guide example project.
The cell still has the right size (from sizeForViewModel), but I’m creating a MKSnapshotter inside bindViewModel, which unfortunately uses the wrong size of the contentView.
In my project, the bug only occurs when the cell is loaded for the first time. After that, contentView.frame.size returns the correct size.
The text was updated successfully, but these errors were encountered:
General information
IGListKit
version: 3.4.0Hello,
I think I found a bug: If you call
contentView.frame.size
inside yourbindViewModel
method, it returns the size of the xib (in storyboard), not the size of the cell, which was specified in thesectionController(_ sectionController: ListBindingSectionController<ListDiffable>, sizeForViewModel viewModel: Any, at index: Int)
.This bug also occurs in the
IGListKit-Binding-Guide
example project.The cell still has the right size (from
sizeForViewModel
), but I’m creating a MKSnapshotter insidebindViewModel
, which unfortunately uses the wrong size of the contentView.In my project, the bug only occurs when the cell is loaded for the first time. After that,
contentView.frame.size
returns the correct size.The text was updated successfully, but these errors were encountered: