Disable refreshable on Universe view
Updates are streamed from the network, removing the need for a refresh action Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -126,12 +126,6 @@ struct SearchHomeView: View {
|
|||||||
.onDisappear {
|
.onDisappear {
|
||||||
loadingTask?.cancel()
|
loadingTask?.cancel()
|
||||||
}
|
}
|
||||||
.refreshable {
|
|
||||||
// Fetch new information by unsubscribing and resubscribing to the relay
|
|
||||||
loadingTask?.cancel()
|
|
||||||
loadingTask = Task { await model.reload() }
|
|
||||||
try? await loadingTask?.value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user