Skip to content

Commit d14bc71

Browse files
committed
fix: add note for Swiftui projects to setup doc
1 parent e0bf344 commit d14bc71

File tree

1 file changed

+13
-0
lines changed
  • src/connections/auto-instrumentation

1 file changed

+13
-0
lines changed

src/connections/auto-instrumentation/setup.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ Follow these steps to integrate the Signals SDK into your Swift application:
6262

6363
Verify that you replaced `<WRITE_KEY>` with the actual write key you copied in Step 1.
6464

65+
> info "SwiftUI Projects"
66+
> If your app is written in SwiftUI, you will need to add a `TypeAlias.swift` file to your project in order to capture interaction and navigation Signals. Refer to the example below for more information
67+
68+
```swift
69+
import Foundation
70+
import Signals
71+
72+
typealias Button = SignalButton
73+
typealias NavigationStack = SignalNavigationStack
74+
typealias NavigationLink = SignalNavigationLink
75+
typealias TextField = SignalTextField
76+
typealias SecureField = SignalSecureField
77+
```
6578
### Kotlin
6679

6780
Follow these steps to integrate the Signals SDK into your Kotlin application:

0 commit comments

Comments
 (0)