Relative Content

Tag Archive for swiftuicocoauikit

UIkit’s UITextView is taking space in the View although if it is empty

I have 3 subViews(2 labels, 1 UITextView) each with different background colour in my VC. I want to show them based on the flag value. The issue is when the UITextview’s text empty, the textView has some default width and height(which i did not give) with its background colour whether labels are not taking any width if text is empty

UIkit’s UITextView is taking space in the View although if it is empty

I have 3 subViews(2 labels, 1 UITextView) each with different background colour in my VC. I want to show them based on the flag value. The issue is when the UITextview’s text empty, the textView has some default width and height(which i did not give) with its background colour whether labels are not taking any width if text is empty