ios - Content Hugging Priority Not working as expected -


i have view height directly proportional height of parent view. within view there 2 buttons , spacer view. want heights of buttons increase first , height of spacer view increase lower priority. purpose have set heights of buttons equal, , given 2 additional constraints first button i.e 30 <= height <= 50. have assigned spacer view height >= 30. if space available, want buttons grow up-to size of 50 , if still space available spacer view fill-up remaining area. achieve have given buttons content hugging priority(vertical) 200 , spacer view has higher content hugging priority(vertical) 300. not working expected. missing or doing incorrectly?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -