freshOS / Stevia

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

Multiplier in Constraints #168

Open rehannali opened 2 years ago

rehannali commented 2 years ago

Hi, how can we add multiplier to any constraint Example snapkit make.centerY.equalTo(self).multipliedBy(0.8)

Example native: selectionView.centerXAnchor.constraint(equalTo: safeArea.centerXAnchor, multiplier: 0.8).isActive = true

I don't found a way to add multiplier. It only have constant/padding to constraint.