Replies: 1 comment
-
Kotlin and Swift handle generics very differently, and constructors pose additional challenges. While we'll continue to enhance the transpiler's abilities over time, we don't have any immediate plans to support constructors in extensions with generic specializations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a use case where I'm using the extension of a type supplying default types for generics
https://github.com/shial4/SwiftUIComponents/blob/main/Sources/SwiftUIComponents/Components/Calendar/CalendarView.swift#L129
This allows me for nice use of given view with injecting default generic types in
as it results with use case such as:
It gives freedom to user without worrying if he needs to create it, which he can if he prefers too.
Is there a way we could add support for this?
Beta Was this translation helpful? Give feedback.
All reactions