This demo SwiftUI app and Xcode target provides a testing environment and example usage for the Twift library.
You will need to provide your API credentials before you can build and run the app.
- Create a
.envfile in the Demo App folder (or copy.env.exampleto.env) - Populate the
.envfile withTWITTER_API_KEY,TWITTER_API_SECRET, andTWITTER_CALLBACK_URLvalues (see.env.examplefor an example) - Build the Twift_SwiftUI target to create the
Secrets.swiftfile which provides your client credentials for the app. You may need to clean the build folder to prevent errors aboutSecrets.swiftbeing missing and then manually re-build. - Go to the “Info” tab in the Twift_SwiftUI target overview and update the URL Types pane to reflect the URL scheme for your API client.