Is it possible to resize the section with animation in IGListSectionController?

Is it possible to resize the section with animation in IGListSectionController? Or trigger recalculation sizeForItem

?

I have an expandable label in a section, i.e. clicking on the icon has a new view with animation. But the height of the partition was not recalculated, so the new species pushed all other species out of the lower interface. And they are no longer visible. I want to increase the height of the section to show all views in the section.

Section exam.

Partition size is provided by:

func sizeForItem(at index: Int) -> CGSize
{
    let height: CGFloat = self.expanded ? 200 + 300 : 200
    return CGSize(width: collectionContext!.containerSize.width, height: height)
}

      

And the property expanded

is true when clicked.

+3
ios swift iglistkit


source to share


No one has answered this question yet

Check out similar questions:

64
UILabel font resize animation
58
UICollectionView: resize cell for animation on selection
42
Cell resizing of UICollectionView animation causes unwanted behavior
32
Animate CAShapeLayer path when animated borders change
7
Animation of changing the height of the UITableView section header by constraints
1
Dynamically resizing UICollectionViewCell with animation
1
How to update UIView.intrinsicContentSize when depending on the movement of the object in animation?
1
Resize UITableView cell animation when top edge is not fully visible
0
How do I animate the resizing of a UICollectionView cell that is also dynamically sized?
0
Wrong animation with layout constraints and NSAnimationContext



All Articles
Loading...
X
Show
Funny
Dev
Pics