freshOS / Stevia

:leaves: Concise Autolayout code
https://freshos.github.io/SteviaDocs/
MIT License
3.38k stars 214 forks source link

SteviaLayoutX/YAxisAnchor doesn't support inequality operators? #158

Open EdgarDegas opened 3 years ago

EdgarDegas commented 3 years ago

I can't manage to set up a constraint like

label.Trailing <= view.safeAreaLayoutGuide.Trailing

, which is totally fine in the layout system:

label.trailingAnchor.constraint(lessThanOrEqualTo: view.safeAreaLayoutGuide.trailingAnchor)
    .isActive = true

Will Stevia consider implement this?

sathya26d94 commented 3 years ago

+1 to this suggestion