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):
|
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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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?
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue