Black background on transparent UITabBar

前端 未结 4 1062
有刺的猬
有刺的猬 2021-02-01 07:12

I am trying to make a blurred background the UITabBar for my UITabViewController, and the idea is to have it be blurred and transparent so that the vie

4条回答
  •  执笔经年
    2021-02-01 07:20

    the only solution that worked for me was this:

    UITabBar.appearance().shadowImage = UIImage()
    UITabBar.appearance().backgroundImage = UIImage()
    

    and set: (you can do this in storyboard as well)

    UITabBar.appearance().barTintColor = UIColor.clear
    

    but what i have to set in storyboard is:

    • tabbar : translucent -> true

提交回复
热议问题