From fcc7c645b82bb5df4164b97851106957d27fc715 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Sat, 24 Feb 2018 20:30:28 +0000 Subject: [PATCH] Fix the layout issue After https://github.com/TextureGroup/Texture/pull/808, you just need to call `transitionLayout` and the layout change should be animated correctly using the default animation. To implement a custom layout, please check [this](http://texturegroup.org/docs/layout-transition-api.html) out. Cheers! --- TestTextureCell/MultipleStateCell.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/TestTextureCell/MultipleStateCell.swift b/TestTextureCell/MultipleStateCell.swift index b1bc483..9ad4e7e 100644 --- a/TestTextureCell/MultipleStateCell.swift +++ b/TestTextureCell/MultipleStateCell.swift @@ -66,7 +66,6 @@ class MultipleStateCell: ASCellNode { @objc func stateChanged() { self.state = self.state.toggle() self.transitionLayout(withAnimation: true, shouldMeasureAsync: false, measurementCompletion: nil) - self.setNeedsLayout() }