Initial support for gallery content transition rect

This commit is contained in:
Ali
2019-12-20 20:25:15 +04:00
parent 0e1308b63f
commit 8963691778
62 changed files with 181 additions and 130 deletions

View File

@@ -1547,7 +1547,7 @@ public func settingsController(context: AccountContext, accountManager: AccountM
}
avatarGalleryTransitionArguments = { [weak controller] entry in
if let controller = controller {
var result: ((ASDisplayNode, () -> (UIView?, UIView?)), CGRect)?
var result: ((ASDisplayNode, CGRect, () -> (UIView?, UIView?)), CGRect)?
controller.forEachItemNode { itemNode in
if let itemNode = itemNode as? ItemListAvatarAndNameInfoItemNode {
result = itemNode.avatarTransitionNode()