Skip to content

Commit 478efb2

Browse files
committed
okay this is actually super messy
1 parent 1512cb2 commit 478efb2

File tree

1 file changed

+17
-14
lines changed
  • src/connections/sources/catalog/libraries/mobile/apple/destination-plugins

1 file changed

+17
-14
lines changed

src/connections/sources/catalog/libraries/mobile/apple/destination-plugins/mixpanel-swift.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,33 +15,36 @@ Segment's Mixpanel destination plugin code is open source and [available on GitH
1515
3. Copy your Mixpanel "API Secret" and "Token", and paste them into the Connection Settings in Segment.
1616
4. Enable the destination to start sending your data to Mixpanel.
1717

18-
### Adding the dependency
18+
### Add the dependency
1919

20-
***Note:** the Mixpanel library itself will be installed as an additional dependency.*
20+
When you add the Mixpanel plugin, the Mixpanel library is installed automatically as an additional dependency.
21+
22+
#### Through Xcode
23+
24+
1. In Xcode, go to **File > Add Packages**.
25+
2. In the search field, enter the repository URL:
26+
`https://github.com/segment-integrations/analytics-swift-mixpanel`
27+
3. Choose a version or branch, and select the project where you want to add the package.
28+
4. Click **Add Package** to complete the installation.
2129

22-
### through Xcode
2330
In the Xcode `File` menu, click `Add Packages`. You'll see a dialog where you can search for Swift packages. In the search field, enter the URL to this repository.
2431

2532
https://github.com/segment-integrations/analytics-swift-mixpanel{:target="_blank"}
2633

2734
You'll then have the option to pin to a version, or specific branch, as well as which project in your workspace to add it to. Once you've made your selections, click the `Add Package` button.
2835

29-
### through Package.swift
36+
#### Through Package.swift
3037

31-
Open your Package.swift file and add the following do your the `dependencies` section:
38+
Open your `Package.swift` file and add the dependency to the `dependencies` section:
3239

33-
```
40+
```swift
3441
.package(
35-
name: "Segment",
36-
url: "https://github.com/segment-integrations/analytics-swift-mixpanel.git",
37-
from: "1.1.3"
38-
),
42+
name: "Segment",
43+
url: "https://github.com/segment-integrations/analytics-swift-mixpanel.git",
44+
from: "1.1.3"
45+
),
3946
```
4047

41-
42-
*Note the Mixpanel library itself will be installed as an additional dependency.*
43-
44-
4548
## Using the Plugin in your App
4649

4750
Open the file where you setup and configure the Analytics-Swift library. Add this plugin to the list of imports.

0 commit comments

Comments
 (0)