patrickdelconte
11/19/2024, 1:59 PMlayoutSubviews
of the interop UIView
" as written here?
https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-ios-migration.html#onresize-parameter-removed
I'm a bit at a loss here, something like object: UIView() { override fun layoutSubviews(){ /* */ } }
just leads to a compiler errorAndrei Salavei
11/19/2024, 3:01 PMclass MyCustomView: UIView() {
override fun layoutSubview() { ... }
}
Andrei Salavei
11/19/2024, 3:02 PMpatrickdelconte
11/19/2024, 3:07 PMAndrei Salavei
11/19/2024, 3:14 PMAVCaptureVideoPreviewLayer
patrickdelconte
11/19/2024, 3:18 PMAndrei Salavei
11/19/2024, 4:00 PMUnable to call non-designated initializer as super constructor
is a limitation of Obj-C. You should always override all designated constructors. So the fix will be like:
object: UIView(frame = CGRectZero.readValue()) { override fun layoutSubviews(){ /* */ } }
patrickdelconte
11/19/2024, 5:46 PMpatrickdelconte
11/19/2024, 6:05 PM