no message

This commit is contained in:
Peter
2017-10-03 15:57:32 +03:00
parent 46295401ff
commit 0f26dc36a7
134 changed files with 2079 additions and 1058 deletions

View File

@@ -148,7 +148,7 @@ class InstantPageGalleryController: ViewController {
if !self.entries.isEmpty {
if let transitionArguments = presentationArguments.transitionArguments(self.entries[centralItemNode.index]), !forceAway {
animatedOutNode = false
centralItemNode.animateOut(to: transitionArguments.transitionNode, completion: {
centralItemNode.animateOut(to: transitionArguments.transitionNode, addToTransitionSurface: transitionArguments.addToTransitionSurface, completion: {
animatedOutNode = true
completion()
})
@@ -180,11 +180,11 @@ class InstantPageGalleryController: ViewController {
self.galleryNode.statusBar = self.statusBar
self.galleryNode.navigationBar = self.navigationBar
self.galleryNode.transitionNodeForCentralItem = { [weak self] in
self.galleryNode.transitionDataForCentralItem = { [weak self] in
if let strongSelf = self {
if let centralItemNode = strongSelf.galleryNode.pager.centralItemNode(), let presentationArguments = strongSelf.presentationArguments as? InstantPageGalleryControllerPresentationArguments {
if let transitionArguments = presentationArguments.transitionArguments(strongSelf.entries[centralItemNode.index]) {
return transitionArguments.transitionNode
return (transitionArguments.transitionNode, transitionArguments.addToTransitionSurface)
}
}
}
@@ -237,7 +237,7 @@ class InstantPageGalleryController: ViewController {
if let transitionArguments = presentationArguments.transitionArguments(self.entries[centralItemNode.index]) {
nodeAnimatesItself = true
centralItemNode.animateIn(from: transitionArguments.transitionNode)
centralItemNode.animateIn(from: transitionArguments.transitionNode, addToTransitionSurface: transitionArguments.addToTransitionSurface)
self._hiddenMedia.set(.single(self.entries[centralItemNode.index]))
}