I have two views: toastView
and view
. toastView
is subview of view
.
I want to position toastView
on the y axis by 80% of view
height.
How can I do this using constants in the code?
I assumed that there is a method like:
[toastView.topAnchor constraintEqualToAnchor:view.heightAnchor multiplier:0.8].active = YES;
but i can't mixing NSLayoutDimension
(width and height) and NSLayoutYAxisAnchor
(X and Y)
This is how it looks in the design: