Improved the LoadingView component for the Browse module.
This commit is contained in:
parent
32c5fda8f1
commit
fdb4e16d32
@ -10,18 +10,28 @@ import SwiftUI
|
|||||||
|
|
||||||
struct LoadingView: View {
|
struct LoadingView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(spacing: 24) {
|
VStack {
|
||||||
ProgressView()
|
Spacer()
|
||||||
.controlSize(.large)
|
|
||||||
.tint(.red)
|
|
||||||
|
|
||||||
Text(
|
VStack(spacing: 24) {
|
||||||
"loading.loading_data.text",
|
ProgressView()
|
||||||
bundle: .module
|
.controlSize(.large)
|
||||||
)
|
.tint(.red)
|
||||||
.font(.body)
|
|
||||||
.fontWeight(.semibold)
|
Text(
|
||||||
|
"loading.loading_data.text",
|
||||||
|
bundle: .module
|
||||||
|
)
|
||||||
|
.font(.body)
|
||||||
|
.fontWeight(.semibold)
|
||||||
|
}
|
||||||
|
.padding(24)
|
||||||
|
.background(Material.ultraThin)
|
||||||
|
.cornerRadius(16)
|
||||||
|
|
||||||
|
Spacer()
|
||||||
}
|
}
|
||||||
|
.background(Color.clear)
|
||||||
.ignoresSafeArea()
|
.ignoresSafeArea()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user