Skip to content

Commit 8c76f55

Browse files
committed
Added SwiftUI Signal typealiases to readme.
1 parent 7eaff32 commit 8c76f55

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,15 @@ let config = SignalsConfiguration(
347347
useNetworkAutoSignal: true
348348
)
349349
```
350+
Note: For SwiftUI, you'll also need to add these typealiases somewhere in your project to allow interaction signals to be captured. These are thin wrappers over SwiftUI's structs, no UI element behavior changes will occur.
351+
352+
```swift
353+
typealias Button = SignalButton
354+
typealias NavigationLink = SignalNavigationLink
355+
typealias NavigationStack = SignalNavigationStack
356+
typealias TextField = SignalTextField
357+
typealias SecureField = SignalSecureField
358+
```
350359
351360
#### Custom Network Monitoring
352361
```swift

0 commit comments

Comments
 (0)