UIEdgeInset hides content beneath the UITabBarController

I have a structure which looks like this:

  • UIView
    • Header (at the top)
    • WKWebView (in the middle)
    • UITabBarController (at the bottom)

To position the WKWebView beneath my header I have used UIEdgeInset. My WKWebView includes a fixed footer which I would like to stick on top of my UITabBar. The problem is that because of the UIEdgeInset, I have to scroll a tiny bit down in my WKWebView to see the footer. If I remove the UIEdgeInset the problem is gone, but the WKWebView is not behind my header.

Any tips are gladly appreciated!

Leave a Comment