Search code examples
iosswiftviewbackground-colorhidden

Making a subview hidden leaves faint shadow on the view


I have a vertical stack view, which includes two views. I have matched the background color of the second view with the background color of the main view's background so that when i make it hidden, I expect it to match the main background. However, what I get is a faint area visible on the screen (images shown). Is there any way to remove it? When the view is visible When the view is hidden


Solution

  • change background color of the stack view and second view to make it transparent

    enter image description here