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

}

相关推荐
米有哥21 小时前
[Embodied AI] Mac上安装ROS2
人工智能·macos·ros2
2501_927541091 天前
Adobe Lightroom Classic 2025 Lrc图像处理工具Mac
图像处理·macos·adobe·lightroom·照片美化
2501_927541091 天前
AlDente Pro Mac电脑充电限制保护工具
macos·电脑·电脑保护·电脑充电保护
Feibo20111 天前
永远关闭mac更新
macos
weixin_462446231 天前
pkg 手动下载依赖并解决打包时网络下载失败(Win / macOS)
macos·pkg
风为你而吹1 天前
mac m3上使用vscode + esp-idf开发esp32
ide·vscode·macos
七月shi人1 天前
使用Node版本管理包n,在MAC电脑权限问题
前端·macos
我的golang之路果然有问题1 天前
win键盘设置改为类似mac 配置
windows·笔记·macos·计算机外设·键盘
天庭鸡腿哥2 天前
国外软件,安装即时专业版!
stm32·microsoft·macos·everything
appleyk2 天前
MacOS-12(Intel) Docker部署Dify1.11.1
macos·docker·agent·dify·dify部署