Created
April 22, 2020 20:46
-
-
Save joninsky/794c4eff3f94ee3cca79b80997e874d7 to your computer and use it in GitHub Desktop.
Networking coordinator setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApolloNetworkingController: ObservableObject { | |
@Published var businesses: [BusinessFragment] = [] | |
@Published var businessesQueryRunning: Bool = false | |
@Published var businessesQueryError: Error? | |
@Published var searchText: String = "Food" | |
lazy var locationController: LocationController = LocationController() | |
//Other details not shown here like init, subscriptions to these variables, and the actual networking call | |
//which will result in these variables getting manipulated and then displayed in the SwiftUI | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment