ios 26的tabbar 背景透明

if #available(iOS 13.0, *){

let appearance = UITabBarAppearance()

appearance.configureWithTransparentBackground()

// 移除阴影和边框

appearance.shadowColor = .clear

appearance.shadowImage = UIImage()

appearance.backgroundImage = UIImage()

// 设置标准外观

tabBar.standardAppearance = appearance

// iOS 15 需要设置 scrollEdgeAppearance

if #available(iOS 15.0, *) {

tabBar.scrollEdgeAppearance = appearance

}

appearance.backgroundImage = UIImage()

appearance.shadowImage = UIImage()

appearance.backgroundColor = .clear

tabBar.standardAppearance = appearance

}else{

tabBar.isTranslucent = true

tabBar.backgroundColor = .clear

}

相关推荐
8***84828 小时前
macOs安装docker且在docker上部署nginx+php
nginx·macos·docker
Aurora-silas8 小时前
Mac 本地运行 Hugging Face 大模型完全指南:PyTorch (MPS) vs Apple MLX
人工智能·pytorch·macos
8***84829 小时前
macOS安装Redis
数据库·redis·macos
小镇学者10 小时前
【PHP】macos 系统 git pull 时 报错File name too long问题
git·macos·php
kk哥889910 小时前
如何在面试中展现自己的软实力?
面试·职场和发展·cocoa
咨询QQ6882388611 小时前
基于Matlab的BP与双隐层BP神经网络预测算法探索
objective-c
m0_4885732320 小时前
简易编译器C++
macos·objective-c·cocoa
00后程序员张21 小时前
iOS App 如何上架,从准备到发布的完整流程方法论
android·macos·ios·小程序·uni-app·cocoa·iphone
Ujimatsu21 小时前
AMD锐龙H 255 + 780M核显 虚拟机安装macOS 15 Sequoia(2025.11)(可登录Apple ID)
macos·vmware·虚拟机·amd·sequoia·h 255