mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[ASTableNode/ASCollectionNode] Inversion (#2891)
* Add inverted property to ASTableNode * Add inverted property to ASCollectionNode * Add example * De-inform data controller and use different CATransform3D * Add logic to pending state * Add accessor for inverted property
This commit is contained in:
committed by
Adlai Holler
parent
e69a475d2b
commit
b3be451486
@@ -1408,6 +1408,9 @@ static NSString * const kReuseIdentifier = @"_ASCollectionReuseIdentifier";
|
||||
if (node.interactionDelegate == nil) {
|
||||
node.interactionDelegate = strongSelf;
|
||||
}
|
||||
if (_inverted) {
|
||||
node.transform = CATransform3DMakeScale(1, -1, 1) ;
|
||||
}
|
||||
return node;
|
||||
};
|
||||
return block;
|
||||
|
||||
Reference in New Issue
Block a user