Raghav Raghav - 6 months ago 18
iOS Question

Do I need to set the Trailing/Leading constraint space to -20 in order for a UIElement to sit on the edge of the screen?

Is this the proper way to set constraints so my Map View will touch the edges of the screen?
enter image description here

Answer

Instead of the -20 like this

enter image description here

Uncheck the Constrain to margins:

enter image description here

If the constraint already exists, you can select the constraint and change its behavior afterwards as well:

enter image description here