You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Importing the Segment SDK in a SwiftUI Observable model causes a compiler crash due to a naming conflict with Swift’s built-in KeyPath type. Segment defines a public struct KeyPath in its codebase, which is picked up during Swift macro expansion, leading to a fatal error:
Cannot specialize non-generic type 'KeyPath'
This breaks any use of Swift’s new Observable macro in the same file.
To Reproduce
Steps to reproduce the behavior:
Create a SwiftUI Project with an Observable Model
Import Segment
Compile the project
Expected behavior
Project should compile successfully without failing due to internal name conflicts.