Skip to content

Commit 7d81a4c

Browse files
committed
fixes
1 parent 6f1ce58 commit 7d81a4c

File tree

1 file changed

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

1 file changed

+4
-2
lines changed

src/connections/sources/catalog/libraries/mobile/swift-ios/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To get started with the Analytics-Swift mobile library:
3434

3535
```swift
3636
var analytics: Analytics? = nil
37-
37+
3838
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
3939
// Override point for customization after application launch.
4040
let configuration = Configuration(writeKey: "WRITE_KEY")
@@ -68,6 +68,7 @@ Once you've installed the Analytics-Swift library, you can start collecting data
6868
- [Track](#track)
6969
- [Screen](#screen)
7070
- [Group](#group)
71+
- [Alias](#alias)
7172

7273
### Identify
7374
The [Identify](/docs/connections/spec/identify/) method lets you tie a user to their actions and record traits about them. This includes a unique user ID and any optional traits you know about them like their email, name, address. The traits option can include any information you want to tie to the user. When using any of the reserved traits, be sure the information reflects the name of the trait. For example, `email` should always be a string of the user's email address.
@@ -187,7 +188,7 @@ analytics.group(groupId: "user-123", traits: MyTraits(
187188
{% endcodeexample %}
188189

189190
### Alias
190-
The [Alias](/docs/connections/spec/alias/) method is used to merge two user identities, effectively connecting two sets of user data as one. When this method is called, the `newId` value overwrites the old `userId`. If no `userId` is currently set, the `newId` associates with future events as the `userId`. This is an advanced method and may not be supported across the entire destination catalog.
191+
The [Alias](/docs/connections/spec/alias/) method is used to merge two user identities, effectively connecting two sets of user data as one. When this method is called, the `newId` value overwrites the old `userId`. If no `userId` is currently set, the `newId` associates with future events as the `userId`. This is an advanced method and may not be supported across the entire destination catalog.
191192

192193
{% codeexample %}
193194
{% codeexampletab Method signature %}
@@ -202,6 +203,7 @@ analytics.alias(newId: "user-123")
202203
```
203204
{% endcodeexampletab %}
204205
{% endcodeexample %}
206+
205207
## Plugin Architecture
206208
Segment's plugin architecture enables you to modify and augment how the analytics client works. From modifying event payloads to changing analytics functionality, plugins help to speed up the process of getting things done.
207209

0 commit comments

Comments
 (0)