修复 iOS: 移除 UIKit import(Xcode Beta 找不到该模块),TabView 使用系统默认样式
这个提交包含在:
@@ -1,5 +1,4 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
import UIKit
|
|
||||||
|
|
||||||
struct ContentView: View {
|
struct ContentView: View {
|
||||||
@EnvironmentObject var store: Store
|
@EnvironmentObject var store: Store
|
||||||
@@ -30,10 +29,5 @@ struct ContentView: View {
|
|||||||
.tag(2)
|
.tag(2)
|
||||||
}
|
}
|
||||||
.tint(.blue)
|
.tint(.blue)
|
||||||
.onAppear {
|
|
||||||
let appearance = UITabBarAppearance()
|
|
||||||
appearance.configureWithDefaultBackground()
|
|
||||||
UITabBar.appearance().scrollEdgeAppearance = appearance
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户