Skip to content

Commit ab03de6

Browse files
committed
added mention of Swift Package Manager
1 parent a76f2eb commit ab03de6

File tree

1 file changed

+2
-3
lines changed
  • src/connections/sources/catalog/libraries/mobile/ios

1 file changed

+2
-3
lines changed

src/connections/sources/catalog/libraries/mobile/ios/quickstart.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ When you create a Source in the Segment web app, it tells the Segment servers th
2626

2727
## Step 2: Install the SDK
2828

29-
The recommended way to install Analytics for iOS is using [Cocoapods](http://cocoapods.org/), since it means you can create a build with specific bundled destinations, and because it makes it simple to install and upgrade.
29+
Segment recommends you to install Analytics for iOS by using either [Cocoapods](http://cocoapods.org/) or your Swift Package Manager, since it means you can create a build with specific bundled destinations, and because it makes it simple to install and upgrade.
3030

3131
First, add the `Analytics` dependency to your `Podfile` by adding the following line:
3232

@@ -94,7 +94,7 @@ Now that the SDK is installed and set up, you’re ready to start making calls.
9494
The `identify` method informs Segment who the current user is. It takes a unique User ID, and any optional traits you know about them. You can read more about it in the [identify reference](/docs/connections/sources/catalog/libraries/mobile/ios#identify).
9595

9696
Here’s what a basic call to `identify` might look like:
97-
97+
9898
{% codeexample %}
9999
{% codeexampletab Swift %}
100100
```swift
@@ -225,4 +225,3 @@ Analytics.shared().flush()
225225
## What’s Next?
226226
227227
We just walked through the quickest way to get started with Segment using Analytics for iOS. You might also want to check out our full [Analytics for iOS reference](/docs/connections/sources/catalog/libraries/mobile/ios) to see what else is possible, or read about the [Tracking API methods](/docs/connections/sources/catalog/libraries/server/http-api/) to get a sense for the bigger picture.
228-

0 commit comments

Comments
 (0)