iMessage Camera keyboard extension?

Hey all,

Wondering if anyone would have an idea of how to recreate the keyboard 'extension' when the user taps the camera button and the additional options, including the AVCapture preview layer display where the keyboard was previously.

I say 'extension' loosely as I'm not sure if it is an extension, or if it is. I've tried to add a view over the top of the keyboard, including reference the application window's frame to do so however had no luck as of yet.

Wondering if anyone might have the slightest idea or could point me in the right direction?

Thanks again :)