Move sheet outside refreshable

This commit is contained in:
Garth Vander Houwen 2024-06-25 17:55:32 -07:00
parent a18161a871
commit 91dfe0a4e7

View file

@ -54,9 +54,7 @@ struct AppLog: View {
.width(ideal: 200, max: .infinity)
}
.monospaced()
.sheet(isPresented: $isEditingFilters) {
AppLogFilter(categories: $categories, levels: $levels)
}
.safeAreaInset(edge: .bottom, alignment: .trailing) {
HStack {
Button(action: {
@ -118,6 +116,9 @@ struct AppLog: View {
}
selectedLog = log
}
.sheet(isPresented: $isEditingFilters) {
AppLogFilter(categories: $categories, levels: $levels)
}
.sheet(item: $selectedLog, onDismiss: didDismiss) { log in
LogDetail(log: log)
.padding()