How can I make my API calls more reusable using the AppAuth library?
To get my feet wet with SwiftUI app development I’m making a simple app with login functionality using the AppAuth library. I’ve got basic login and logout functionality working and can make a request using the received access token. Currently all requests are made from a single class. For a real app I’d like to split the requests and have them in different files. This is how I’m making a basic API request to fetch the user’s data after they have logged in:
How to publish values on the main thread?
To get my feet wet with SwiftUI app development I’m making a simple app with login functionality using the AppAuth library. I’ve got basic login and logout functionality working and can make a request using the received access token. During refactoring to cleanup my code I’ve encountered a purple warning saying: