- File > Swift Packages > Add Package Dependency
- Add
https://github.com/GoMarketMe/gomarketme-swift.git
- Select "Up to Next Major" with "1.0.0"
Using an older version of Xcode? Do this instead:
- Navigate to the project navigator and select your project or the blue project icon.
- Package Dependencies > Add a New Package > +
- In the search bar that appears, enter
https://github.com/GoMarketMe/gomarketme-swift.git
- Press "Add Package"
import GoMarketMe
init() {
GoMarketMe.shared.initialize(apiKey: "API_KEY")
}
Make sure to replace API_KEY with your actual GoMarketMe API key. You can find it on the product onboarding page and under Profile > API Key.
Check out our sample app for an example.