roberthein / TinyConstraints

Nothing but sugar.
MIT License
3.98k stars 202 forks source link

Why is trailingToSuperview offset inverted? #66

Open piotrczurak opened 6 years ago

piotrczurak commented 6 years ago

Why is offset value being manually inverted in trailingToSuperView and leadingToSuperview functions basing on effectiveUserInterfaceLayoutDirection? I believe trailing/leading constraints are made precisely so that developers don't have to handle layout direction manually.

ggirotto commented 6 years ago

up

crayment commented 5 years ago

I have run into this as well. In general I think there are issues relating to RTL support and inverting offsets. I may be in a position to PR some changes around this. Would this get support? Any history I should be aware of?

Lutzifer commented 5 years ago

I think https://github.com/roberthein/TinyConstraints/pull/31 is some of the history of this, but it has been a while.

roberthein commented 5 years ago

Would you have time @crayment to create a proposal?