Chapter 37: Unable to pin Search bar to top, left and right edges

Chapter 39 instructs to pin the Search Bar to the top, left and right edges, but those options are not available to me. This result in layout problems when using the app on larger devices such as an iPhone 11.

Screen Shot 2020-04-19 at 7.38.23 PM

Go to the Size Inspector for the search bar and make sure the
Layout property in the View section is set to Automatic and not Translates Mask Into Constraints. Once you do this you should be able to set Auto Layout constraints.


Thanks! This solved the issue.

This topic was automatically closed after 166 days. New replies are no longer allowed.