修复 iOS: 移除 UIKit import(Xcode Beta 找不到该模块),TabView 使用系统默认样式

这个提交包含在:
JGZ_YES
2026-08-12 13:37:03 +08:00
父节点 bb6f490bcd
当前提交 08b521c437
-6
查看文件
@@ -1,5 +1,4 @@
import SwiftUI
import UIKit
struct ContentView: View {
@EnvironmentObject var store: Store
@@ -30,10 +29,5 @@ struct ContentView: View {
.tag(2)
}
.tint(.blue)
.onAppear {
let appearance = UITabBarAppearance()
appearance.configureWithDefaultBackground()
UITabBar.appearance().scrollEdgeAppearance = appearance
}
}
}