mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-05-19 08:48:16 +00:00
Stream event infinity
This commit is contained in:
parent
b963a74dc4
commit
330a20be37
|
@ -107,6 +107,13 @@ public struct TimelineView: View {
|
||||||
await viewModel.fetchStatuses()
|
await viewModel.fetchStatuses()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Task {
|
||||||
|
while true {
|
||||||
|
try await Task.sleep(for: .seconds(1.5))
|
||||||
|
viewModel.handleEvent(event: StreamEventUpdate(status: .placeholder()), currentAccount: account)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.onDisappear {
|
.onDisappear {
|
||||||
viewModel.isTimelineVisible = false
|
viewModel.isTimelineVisible = false
|
||||||
|
|
Loading…
Reference in a new issue