More fix to detail screen

This commit is contained in:
Thomas Ricouard 2023-02-16 21:06:45 +01:00
parent 4304977924
commit c3ae101df2
2 changed files with 2 additions and 2 deletions

View File

@ -42,6 +42,7 @@ public struct StatusDetailView: View {
case let .display(statuses, date): case let .display(statuses, date):
makeStatusesListView(statuses: statuses, date: date) makeStatusesListView(statuses: statuses, date: date)
.id(date)
if !isLoaded { if !isLoaded {
loadingContextView loadingContextView
@ -113,7 +114,6 @@ public struct StatusDetailView: View {
} }
if self.viewModel.statusId == status.id { if self.viewModel.statusId == status.id {
makeCurrentStatusView(status: status) makeCurrentStatusView(status: status)
.id(date.description)
} else { } else {
StatusRowView(viewModel: viewModel) StatusRowView(viewModel: viewModel)
} }

View File

@ -15,7 +15,7 @@ class StatusDetailViewModel: ObservableObject {
} }
@Published var state: State = .loading @Published var state: State = .loading
@Published var isLoadingContext = false @Published var isLoadingContext = true
@Published var title: LocalizedStringKey = "" @Published var title: LocalizedStringKey = ""
@Published var scrollToId: String? @Published var scrollToId: String?