Reputation: 185
Pic. 1
Pic. 2
Pic.1 - it is a structure of my ViewController
. Label1
and Label2
have changing size (content comes from backend) for different users. If content of labels is small, I need to set Top Space constraint for TableView
(vertical spacing) to Button (pic.1), but if content of labels is big, set Top Space constraint for TableView
(vertical spacing) to Stack (pic.2). How to set constraints for TableView
?
Upvotes: 0
Views: 68
Reputation: 12829
Embed your image,button two labels and stack in a view. Then add following constraints
Upvotes: 1