Initial commit
This commit is contained in:
@ -9,10 +9,16 @@ import SwiftUI
|
||||
|
||||
struct LoadingView: View {
|
||||
var body: some View {
|
||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
||||
ZStack {
|
||||
Color.black.opacity(0.4).edgesIgnoringSafeArea(.all) // 使背景稍微变暗
|
||||
ProgressView() // iOS 14+ 的新进度指示器
|
||||
.progressViewStyle(CircularProgressViewStyle(tint: .white))
|
||||
.scaleEffect(1.5) // 放大指示器
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#Preview {
|
||||
LoadingView()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user