With the release of Swrve’s iOS SDK version 5.0, we have made major changes to the API to ensure internal consistency and make it easier to exclude optional iOS frameworks. This guide outlines the APIs that we have changed or deprecated.

Removed

Summary

Static method + (Swrve*) sharedInstance from Swrve.h

You should now access all public methods exposed via the Swrve.h instance via similarly named static methods from the SwrveSDK class. Import SwrveSDK.h instead of Swrve.h.

SWRVE_ADDRESS_BOOK
SWRVE_LOCATION
SWRVE_PHOTO_LIBRARY
SWRVE_PHOTO_CAMERANote: If you want to exclude the referenced app capabilities, you no longer need to add any GCC preprocessors. Instead, you now need to add GCC preprocessors if you want to include the capabilities. For more information, see How Do I Exclude Optional iOS Frameworks?