-
-
Notifications
You must be signed in to change notification settings - Fork 57
macOS Example project - Implement dynamic height for cells #85
Comments
is there iOS example? using autolayout in code would be the best :) |
Hey @zdnk, there is a demo project for iOS included in the library. Simply run the |
From what I discovered, it is running the AutoLayout but getting the prototype cell, laying it out and caching its size. However doesnt iOS provide autosizing with AutoLayout by default without such implementation? EDIT: it also seems that the performance is poor :( |
@zdnk Oh like that, I thought you were wondering about an example in general, my bad! What performance is poor? Using autolayout of the demo project that we provide? |
I see. Well AutoLayout is way too slow anyway. I am considering usage of Texture, PinLayout or FlexLayout. |
@zdnk all good alternatives! Best of luck :) |
We may be able to do this with the preferred layout attributes, I will take a look once this has been merged into master. |
Need to implement an example for dynamic height for the macOS Example, at the point of asking for the size in sizeForItemAt*, the collection view has not been loaded into the view so we can not make use of makeItem(withIdentifier*.
We will need to load a dummy cell and set the calculated width like the iOS example does.
The text was updated successfully, but these errors were encountered: