'Populating a SwiftUI view with output from a combine publisher [closed]
Solution 1:[1]
@State var text = ""
var some View{
Text(text)
.padding()
.onAppear(perform: {
client.sink(receiveValue:{ value in
text = value
}
})
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | AdR |

