cashapp / redwood

Multiplatform reactive UI for Android, iOS, and web using Kotlin and Jetpack Compose
https://cashapp.github.io/redwood/0.x/docs/
Apache License 2.0
1.67k stars 73 forks source link

Remove cklib workaround for extending UiView when updating to Kotlin 1.8.20. #893

Closed colinrtwhite closed 1 year ago

colinrtwhite commented 1 year ago

1.8.20 enables a new strategy for importing Objective-C extensions as class members in UIKit. It's currently only enabled for NSView and UIView but that might be all we need. I haven't tested yet, but I think this should let us remove the cklib workaround for extending layoutSubviews in Kotlin code. Hopefully it also works for properties like intrinsicContentSize.

JakeWharton commented 1 year ago

Woah, nice. This and #742 can be done together, most likely.