Join Slack
Powered by
is there any way to enable nested generics? id rat...
# ios
m
mdr
08/14/2023, 6:13 PM
is there any way to enable nested generics? id rather not pass an untyped array
j
Jeff Lockhart
08/14/2023, 9:44 PM
Objective-C doesn't support generics for protocols (interfaces). See
https://kotlinlang.org/docs/native-objc-interop.html#generics
😓 1
👍 1
Jeff Lockhart
08/14/2023, 9:54 PM
You might consider using an abstract class instead of an interface.
🚫 1
👀 1
r
rudolf.hladik
08/17/2023, 7:35 AM
you can wrap list in a wrapper class
Copy code
data class Wrapper(val list: List<Int>)
Open in Slack
Previous
Next