More fix to detail screen
This commit is contained in:
parent
4304977924
commit
c3ae101df2
|
@ -42,6 +42,7 @@ public struct StatusDetailView: View {
|
|||
|
||||
case let .display(statuses, date):
|
||||
makeStatusesListView(statuses: statuses, date: date)
|
||||
.id(date)
|
||||
|
||||
if !isLoaded {
|
||||
loadingContextView
|
||||
|
@ -113,7 +114,6 @@ public struct StatusDetailView: View {
|
|||
}
|
||||
if self.viewModel.statusId == status.id {
|
||||
makeCurrentStatusView(status: status)
|
||||
.id(date.description)
|
||||
} else {
|
||||
StatusRowView(viewModel: viewModel)
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ class StatusDetailViewModel: ObservableObject {
|
|||
}
|
||||
|
||||
@Published var state: State = .loading
|
||||
@Published var isLoadingContext = false
|
||||
@Published var isLoadingContext = true
|
||||
@Published var title: LocalizedStringKey = ""
|
||||
@Published var scrollToId: String?
|
||||
|
||||
|
|
Loading…
Reference in New Issue