testable-view-swiftui
testable-view-swiftui copied to clipboard
How would you test a .task ?
How would I test an async task in a View which just shows some simple data, loaded from an api?
.task {
let result = await api.loadData()
self.data = result
}