[Gutenberg] Implements a call from gutenberg editor to native image fullscreen preview#12979
Conversation
…preview (WPImageViewController.m).
WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift
Outdated
Show resolved
Hide resolved
|
You can trigger an installable build for these changes by visiting CircleCI here. |
… release notes there.
| } | ||
| } | ||
|
|
||
| func gutenbergDidRequestFullscreenImage(with mediaUrl: URL) { |
There was a problem hiding this comment.
Inspired by
SergioEstevao
left a comment
There was a problem hiding this comment.
Great work @cameronvoell !
It was just missing the support for images coming from private sites.
I took the liberty to add support for those, I hope you don't mind.
etoledom
left a comment
There was a problem hiding this comment.
It works great overall! Nice job @cameronvoell 🎉
I noticed a small glitch, not sure if you or @SergioEstevao can reproduce it:
When the cross-disolve transition starts, the controller that is seen at the background is the PostList instead of the Gutenberg editor.
Same when dismissing the image (is more noticeable when dismissing by a simple tap), what appears on the animation is the Blog List, until the animation finishes and it shows the editor again (assuming that the editor was opened from the Blog List controller).
I looked a bit on this and I found this solution:
- Set
controller.modalPresentationStyletooverCurrentContextinstead offullScreen - Set the top-most navigation controller as the presentation context:
navigationController?.definesPresentationContext = true
In this way, all the animation happens over the AztecNavigationController (used to present Gutenberg), and it looks good :)
Making release notes description of fullscreen preview from image block more clear. Co-Authored-By: etoledom <etoledom@icloud.com>
…ash of post list.
Nice catch, and thanks for explaining the fix. Implemented here: 08988b9 |
There was a problem hiding this comment.
Thank you for the update @cameronvoell
Is working perfectly now. Great job 🎉
And thank you @SergioEstevao for helping with private sites :)


Fixes gb-mobile/1286
gutenberg-mobilePR: wordpress-mobile/gutenberg-mobile#1597gutenbergPR: WordPress/gutenberg#18618More Info (Description, Steps)
See
gutenberg-mobilePR: wordpress-mobile/gutenberg-mobile#1597Update release notes:
RELEASE-NOTES.txtif necessary.