You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the library it's really helping me create my animations, i cant imagine how long it would have taken to write everything myself.
I've ran into an issue though when using overFullScreen to present a view controller modally.
My setup is that I have a tableview in viewController A
that when a user presses I want to show viewController B (a detailed view of the pressed cell) on top of viewController A.
This all works (animation/transparency etc) my problem is that the original fromViews in viewController A that were animated from are still visible (in their new position after animation) . i.e. if I scroll up/down in viewController B I can see the images (snapshots I believe?) of the fromViews in the place they animated to.
In the image above I've pulled the scroll view in viewController B down and you can see the image from viewController A that was animated from.
Is there any way for me to remove these and have hero recreate them when returning to viewController A (if they are needed?)
Because I thought that the underlying views were snapshots I tried setting the modifier .useNoSnapshot on the views that were animating but ended up with a complete mess
Note: (In case you're wondering the text in the images is not german or any language, it's just placeholder text)
The text was updated successfully, but these errors were encountered:
Right, for you first approach, i purposely did not remove the snapshots from the original view controller because it would make animated views disappears. Your use case is something I haven't thought about. A hacky way to achieve what you want might be calling Hero.shared.context.removeSnapshots(rootView: ) with your first view controller's image view at the end of the transition.
Your second approach didn't work because any layout code in your first view controller will end up controlling the view which will mess it up.
Hi, thanks for the library it's really helping me create my animations, i cant imagine how long it would have taken to write everything myself.
I've ran into an issue though when using overFullScreen to present a view controller modally.
My setup is that I have a tableview in viewController A
that when a user presses I want to show viewController B (a detailed view of the pressed cell) on top of viewController A.
This all works (animation/transparency etc) my problem is that the original fromViews in viewController A that were animated from are still visible (in their new position after animation) . i.e. if I scroll up/down in viewController B I can see the images (snapshots I believe?) of the fromViews in the place they animated to.
In the image above I've pulled the scroll view in viewController B down and you can see the image from viewController A that was animated from.
Is there any way for me to remove these and have hero recreate them when returning to viewController A (if they are needed?)
Because I thought that the underlying views were snapshots I tried setting the modifier .useNoSnapshot on the views that were animating but ended up with a complete mess
Note: (In case you're wondering the text in the images is not german or any language, it's just placeholder text)
The text was updated successfully, but these errors were encountered: