TLDR: How to serialize independent, heterogeneous HTTP requests using Combine
and Foundation
.
I have a view model that displays to pieces of information from an API, let's assume it's a user's bio and the latest posts from the user.
class ViewModel: ObservableObject {
@Published var bio: String?
@Published var posts: [Post]?