Increased padding around content in views

This increased padding is roughly the same as the padding around native iOS components like lists, which makes it look a lot more uniform. The increased padding also makes everything feel a little less cramped.
This commit is contained in:
2026-01-28 00:13:10 -05:00
parent e761b7ab8a
commit 1902870e03
9 changed files with 46 additions and 29 deletions

View File

@@ -17,6 +17,7 @@ struct LoadingView: View {
@State var loadingType: LoadingType = .normal
@State private var rotationDegrees: Double = 0
@State private var loadingText: String = ""
private var animation: Animation {
.linear
@@ -33,6 +34,13 @@ struct LoadingView: View {
}
}
var loadingTextOptions: [String] = [
"Loading...",
"One moment...",
"Hang tight...",
"Just a moment...",
]
var body: some View {
VStack {
if loadFailed {
@@ -55,8 +63,11 @@ struct LoadingView: View {
rotationDegrees = 360.0
}
}
Text("Loading...")
Text(loadingText)
.foregroundStyle(.secondary)
.onAppear {
loadingText = loadingTextOptions.randomElement() ?? ""
}
}
}
.padding()