Stacy J Stacy J - 1 year ago 175
Swift Question

xcode 7 swift how to make container view transparent

I have 5 tabs in my application. I need to add a floating button for quick action on all my tabs.

I've managed to add the floating button at the bottom, just above the tab bar using a container view. So the container is positioned at bottom right and has a view controller which holds the button.

The problem is, if I add table views to my pages, since the container view is in front, a part of table views gets hidden. How do I make the container view transparent, so the user can see and scroll properly the table view..

Answer Source

Try to use yourContainerView.backgroundColor = UIColor.clearColor()

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download