ios - UIButtons covered by footer and header in messages extension -


buttons covered message sender area

how can make uibuttons not covered message sender overlay , header? message extension , turning under top bars off not seem change anything. there uibutton covered header shown below header.

thanks

it's hard diagnose without further information, save time i'm going assume you're using view controller containment present data. (if not, ought – see apple's example code messages extensions, because it's do.)

when add child view controller parent, should use anchors ensure stays below top bar, regardless of how big is. try using either this:

childvc.view.topanchor.constraint(equalto: view.topanchor).isactive = true 

or this:

childvc.view.topanchor.constraint(equalto: toplayoutguide.bottomanchor).isactive = true 

Comments