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
Texture doesnt support custom UICollectionViewLayout as it is hardcoded to support only UICollectionViewFlowLayout.
ASCollectionViewProxy intercepts the selector collectionView:layout:sizeForItemAtIndexPath: and propagates the values directly to the UICollectionViewFlowLayout in the prepare method. If any other layout has a different method signature or a different ways of setting the item sizes, ASCollectionView stops to work. https://developer.apple.com/documentation/uikit/uicollectionviewdelegateflowlayout/1617708-collectionview
The second issue is that _ASCollectionViewCell does not implement preferredLayoutAttributesFitting so it does not propagate the desired size in a way that is natural for the UICollectionViewLayout after it was calculated. That must be fixed to support any other custom UICollectionViewLayout.
Please see the example project. Just uncomment one or another solution in TextureController.swift TestTexture.zip
The text was updated successfully, but these errors were encountered:
Texture doesnt support custom
UICollectionViewLayout
as it is hardcoded to support onlyUICollectionViewFlowLayout
.ASCollectionViewProxy
intercepts the selectorcollectionView:layout:sizeForItemAtIndexPath:
and propagates the values directly to theUICollectionViewFlowLayout
in theprepare
method. If any other layout has a different method signature or a different ways of setting the item sizes,ASCollectionView
stops to work.https://developer.apple.com/documentation/uikit/uicollectionviewdelegateflowlayout/1617708-collectionview
The second issue is that
_ASCollectionViewCell
does not implementpreferredLayoutAttributesFitting
so it does not propagate the desired size in a way that is natural for theUICollectionViewLayout
after it was calculated. That must be fixed to support any other customUICollectionViewLayout
.Please see the example project. Just uncomment one or another solution in
TextureController.swift
TestTexture.zip
The text was updated successfully, but these errors were encountered: