美文网首页
iOS 15适配

iOS 15适配

作者: 小明讲啥故事 | 来源:发表于2022-10-23 11:27 被阅读0次
        let baImage = UIImage.init(color: .init(hex: 0x171717))
        tabBar.backgroundImage = baImage
        let appearance = UITabBarAppearance()
            let effectView = UIVisualEffectView.init(effect: UIBlurEffect.init(style: .light))
            appearance.backgroundImage = baImage
            if #available(iOS 15.0, *) {
                self.tabBar.standardAppearance = appearance
                self.tabBar.scrollEdgeAppearance = appearance
            } else {
                // Fallback on earlier versions
            }
    

    相关文章

      网友评论

          本文标题:iOS 15适配

          本文链接:https://www.haomeiwen.com/subject/vxqgzrtx.html