Search code examples
iosuser-interfaceautolayoutstoryboardinterface-builder

iPhone 11 stimulator Autolayout constraint not working as expected


Here is the problem that I face. The bottom constraint I already put -100 but still in the iPhone 1 simulator still have appear a little small white gap. So what else can I fix this problem?

enter image description here


Solution

  • You need to use the Safe area, not the Bottom layout guide to set your constraint to.

    Correct constraint