freshOS/Stevia

Height equal height with multiplier.

NikKovIos opened this issue · 2 comments

image

NSLayoutConstraint.activate([
    trimmerView.heightAnchor.constraint(equalTo: trimmerContainerView.heightAnchor, multiplier: 1/3)
])

How to achieve that with Stevia?

s4cha commented

The "equation" api enables you to write it like a math equation :

trimmerView.Height == trimmerContainerView.Height / 3