Skip to content

Commit

Permalink
Update SwiftPM integration instructions & add updated images
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed May 23, 2024
1 parent e597b7d commit c059442
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions guides/swift-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,18 @@ This guide assumes you have already created a TelemetryDeck account. If you have

The TelemetryDeck Swift package uses Swift Package Manager.

1. Open Xcode and navigate to the project you want to add TelemetryDeck to.
1. In the menu, select <kbd>File</kbd> -> <kbd>Add Packages...</kbd>. This will open the Swift Package Manager view.
1. Open Xcode and navigate to the project you want to add TelemetryDeck to
1. In the menu, select <kbd>File</kbd> -> <kbd>Add Packages...</kbd>. This will open the Swift Package Manager view
1. Paste `https://github.com/TelemetryDeck/SwiftSDK` into the search field.
1. Select the `SwiftSDK` package that appears in the list
1. Set the <kbd>Dependency Rule</kbd> to <kbd>Up to Next Major Version</kbd>.
1. Click <kbd>Add Package</kbd>.
1. Set the <kbd>Dependency Rule</kbd> to <kbd>Up to Next Major Version</kbd>
1. Press <kbd>Add Package</kbd> to open the target chooser dialog
1. Set the <kbd>Add to target</kbd> column to your app target for <kbd>TelemetryDeck</kbd> ("TelemetryClient" is deprecated)
1. Click <kbd>Add Package</kbd> to complete the integration

![A screenshot of Xcode adding the TelemetryDeck Package](/docs/images/xcode-swift-package.png)
![A screenshot of Xcode adding the TelemetryDeck Package](/docs/images/xcode-swift-package1.png)

![A screenshot of Xcode setting the target for the TelemetryDeck library](/docs/images/xcode-swift-package2.png)

This will include the TelemetryDeck Swift Client into your app by downloading the source code. Feel free to browse the client's source code, it's tiny and you'll see for yourself how TelemetryDeck is hashing user identifiers before they ever reach the server. Privacy, yay!

Expand Down
Binary file added images/xcode-swift-package1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/xcode-swift-package2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c059442

Please sign in to comment.