iOS - Quick Integration
#
1. Installation Swift Package ManagerShipBookSDK uses Swift Package Manager to install and manage dependencies. To install it in Xcode:
Select File > Swift Packages > Add Package Dependency and enter
https://github.com/ShipBook/ShipBookSDK-iOS.git
#
2. Initializing ShipBook into your codeIn your AppDelegate file, add the following:
import ShipBookSDK
Then, add the following to application(_:didFinishLaunchingWithOptions:):
#
3. Adding logsTo have a log on each class you need to create a logger. For Example, in MainViewController:
import ShipBookSDK
The usage of the log:
#
4. Run your app to verify installation.