Step 1 :- Set constrain to UIView
- Leading 2) Top 3) Trailing (From mainview)
Step 2 :- Set constrain to Label 1
- Leading 2) Top 3) Trailing (From it's superview)
Step 3 :- Set constrain to Label 2
Step 4 :- Most tricky give botton to UILabel from UIView .
Step 5 :-** (Optional) Set constrain to UIButton
Output :-
Note :- Make sure you have set Number of lines =0 in Label property.