Search code examples
iosswiftuser-interfaceconstraints

When I set background image it makes everything inside it disappear (SWIFT)


enter image description hereI have a custom cell inside it there is a cover image that has inside it a profile pic but when i set the background image it makes the profile picture disappears.

what am i missing out??


Solution

  • As I cannot see your code, I can't tell exactly why this happens but I think the problem is you put Profile Pic inside Cover Pic Also, other views such as Full Name Label, Position Label... should also be in the same level or position as Cover Pic in the view hierarchy. I hope this will solve your problem.