Minitour / AZTabBarController

A custom tab bar controller for iOS written in Swift 4.2
MIT License
348 stars 65 forks source link

Tabbar color with opacity #23

Closed freeubi closed 6 years ago

freeubi commented 7 years ago

Hello,

i just tried to make the tab bar color a little transparent, but it seems it doesn't handle the alpha values correctly.

Minitour commented 7 years ago

@freeubi The thing is that the tab bar is not meant to be opaque. You see, the content of the controllers (the tabs) is not set beneath the tab bar. Furthermore, when you set the tab bar to be transparent, what you'll see is going to be the background of the controller, which is white if I am not mistaken.

If you still want to get that transparent effect, you will need to modify the layout constraints of the views in the loadView function.