Skip to content

Commit a82b67d

Browse files
committed
Move padding in StatusView to within the scroll view
1 parent 6a11d06 commit a82b67d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

HeaderViewer/ImageRuntimeObjectsView.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ struct ImageRuntimeObjectsView: View {
138138
.buttonStyle(.bordered)
139139
}
140140
case .loading:
141-
ProgressView()
142-
.scenePadding()
141+
StatusView {
142+
ProgressView()
143+
.scenePadding()
144+
}
143145
case .loaded:
144146
if viewModel.classNames.isEmpty && viewModel.protocolNames.isEmpty {
145147
StatusView {
@@ -183,8 +185,8 @@ private struct StatusView<T: View>: View {
183185
contents()
184186
Spacer()
185187
}
188+
.scenePadding()
186189
}
187190
.frame(maxHeight: .infinity, alignment: .top)
188-
.scenePadding()
189191
}
190192
}

0 commit comments

Comments
 (0)