We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 859282c commit 63d9e94Copy full SHA for 63d9e94
SwiftUI-WorkoutApp/Screens/Messages/DialogList/DialogListView.swift
@@ -96,9 +96,8 @@ private extension DialogListView {
96
97
@ViewBuilder
98
var dialogList: some View {
99
- if viewModel.list.isEmpty {
+ ZStack {
100
Color.swBackground
101
- } else {
102
List {
103
ForEach(viewModel.list) { model in
104
dialogListItem(model)
@@ -109,7 +108,9 @@ private extension DialogListView {
109
108
.onDelete(perform: initiateDeletion)
110
}
111
.listStyle(.plain)
+ .opacity(viewModel.list.isEmpty ? 0 : 1)
112
113
+ .animation(.default, value: viewModel.list.count)
114
115
116
func dialogListItem(_ model: DialogResponse) -> some View {
0 commit comments