mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 02:01:02 +00:00
More fix to detail screen
This commit is contained in:
parent
4304977924
commit
c3ae101df2
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue