Madu
Madu

Reputation: 5019

Restrict Autolayout constraint between some range

Is there a way that i can specify the constraints of Autolayout between some range. for example i want the vertical spacing between two elements to not more than 100 points and not less than 70 points.

Is there a way that i can specify such type of thing.

Upvotes: 2

Views: 906

Answers (1)

LorikMalorik
LorikMalorik

Reputation: 2019

You sure can. Just create 2 constraints with different relations:

enter image description here

Upvotes: 5

Related Questions