WKWebView frame resizing doesn't animate WebGL frame resize
WKWebView frame resizing doesn't animate WebGL frame resize
- Subject: WKWebView frame resizing doesn't animate WebGL frame resize
- From: Rick Mann <email@hidden>
- Date: Thu, 07 Jul 2016 15:27:34 -0700
I'm not sure if this is the right list for this. If not, please let me know a better place to post.
We have a WebGL-based viewer for our 3D content. For the iOS version of the app, I wrap this in a WKWebView, and put a lot of native UI in the rest of the app.
One of the things I want to be able to do is transition the player view from full-screen to something smaller (to hide and show details and related content, much like the YouTube player does).
The problem is that while the HTML/CSS-based overlay controls smoothly transition with the animated WKWebView frame transition, the WebGL field of view does not. It jumps to its new size at the start of the animation, then the rendered rectangle slides into the new position with the rest of the animation. It doesn't look good at all.
I'm not sure if there's a way to handle this. Ideally, the FoV and rendered frame would transition smoothly as well. Is there a way for web content to hook into the Core Animation that's happening. Perhaps I can execute a Javascript call in the WebGL code to animate the transition itself, but I'm worried that the abrupt frame change will affect us anyway.
Thanks for any ideas!
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden