mirror of
https://github.com/VernissageApp/Vernissage.git
synced 2024-12-29 02:10:44 +01:00
27 lines
588 B
Swift
27 lines
588 B
Swift
//
|
|
// https://mczachurski.dev
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
|
// Licensed under the MIT License.
|
|
//
|
|
|
|
|
|
import SwiftUI
|
|
|
|
struct LoadingIndicator: View {
|
|
var body: some View {
|
|
ProgressView {
|
|
Text("Loading...")
|
|
.foregroundColor(.mainTextColor)
|
|
.font(.caption2)
|
|
}
|
|
.progressViewStyle(CircularProgressViewStyle())
|
|
.tint(.mainTextColor)
|
|
}
|
|
}
|
|
|
|
struct LoadingIndicator_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
LoadingIndicator()
|
|
}
|
|
}
|