Group Group Group Group Group Group Group Group Group

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.

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.

image

Thanks! This solved the issue.