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

}

相关推荐
智脑API26 分钟前
CCSwitch 在 Mac 上怎么配置 Claude Code?VS Code、API Key 和首次运行教程
macos
Lucky09281 天前
codex 安装前置软件
linux·运维·macos
Zguigo1 天前
lesson24-26计算机网络第三章精讲:从MAC地址到CSMA/CD,数据链路层核心知识一网打尽
计算机网络·macos
EXI-小洲2 天前
MacOS 环境下 IntelliJ IDEA 的 Maven 配置指南
macos·maven·intellij-idea
aspirant-complete2 天前
MAC(Apple Silicon)嵌入式基于Clion(stm32CubeMX)环境搭建
stm32·macos
EXI-小洲3 天前
MacOS IDEA将本地项目代码上传至SVN空仓库
macos·svn·intellij-idea
00后程序员张3 天前
iOS 开发全流程需要哪些工具?编码、调试、构建、发布阶段选择
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
weixin_531670894 天前
Interlude起来:久坐提醒软件为什么需要登录?有没有完全本地运行的Mac休息提醒软件?
人工智能·macos·swift
coding4u4 天前
Mac 多桌面(Spaces)的正确用法:你的屏幕可以大三倍
macos·docker·计算机外设·文件管理·策略模式
iFlyCai5 天前
iOS中的单例模式详解
ios·单例模式·objective-c·多线程·swift