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

}

相关推荐
雨中风华4 小时前
Linux, macOS系统实现远程目录访问(等同于windows平台xFsRedir软件的目录重定向)
linux·windows·macos
有趣的杰克8 小时前
开源|macOS 菜单栏 AI 启动器 GroAsk:⌥Space 一键直达 ChatGPT / Claude / Gemini
人工智能·macos·chatgpt
疯狂敲代码的老刘8 小时前
JDK 1.6到25 全版本网盘合集 (Windows + Mac + Linux)
java·linux·windows·macos·jdk
符哥200810 小时前
Swift 开发 iOS App 过程中写自定义控件的归纳总结
ios·cocoa·swift
jxy999810 小时前
mac mini 安装java JDK 17
java·开发语言·macos
Figo_Cheung10 小时前
Figo关于OpenClaw(MacOS)安装前环境变量设置保姆级教程
macos·性能优化·个人开发
pop_xiaoli11 小时前
effective-Objective-C 第二章阅读笔记
笔记·学习·ios·objective-c·cocoa
未来侦察班20 小时前
一晃13年过去了,苹果的Airdrop依然很坚挺。
macos·ios·苹果vision pro
普通网友1 天前
苹果笔记本(Mac)连接手机完全指南
macos·智能手机
Aftery的博客1 天前
Xcode运行报错:SDK does not contain ‘libarclite‘ at the path
macos·cocoa·xcode