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
.env
file in the Demo App folder (or copy.env.example
to.env
) - Populate the
.env
file withTWITTER_API_KEY
,TWITTER_API_SECRET
, andTWITTER_CALLBACK_URL
values (see.env.example
for an example) - Build the Twift_SwiftUI target to create the
Secrets.swift
file which provides your client credentials for the app. You may need to clean the build folder to prevent errors aboutSecrets.swift
being 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.