ribesg
02/07/2020, 4:02 PMUIView.draw?ribesg
02/07/2020, 4:05 PM@ObjCMethod external extension function of UIViewribesg
02/07/2020, 4:06 PMlouiscad
02/07/2020, 7:03 PMexternal and @ObjCMethod, it should work after that. That's a tooling issue, reporting it would make sense.ribesg
02/08/2020, 10:47 AMlouiscad
02/08/2020, 5:13 PMribesg
02/10/2020, 9:30 AMribesg
02/10/2020, 9:32 AM@kotlinx.cinterop.ObjCMethod public external fun platform.UIKit.UIView.drawRect(rect: kotlinx.cinterop.CValue<platform.CoreGraphics.CGRect>): kotlin.Unit { /* compiled code */ }ribesg
02/10/2020, 9:39 AMlouiscad
02/10/2020, 9:43 AMribesg
02/10/2020, 9:50 AMWhile the use of drawRect is common, it’s a practice that has been discouraged since at least 2002/2003Apparently you should ‘now’ (and for the last 18 years) use drawLayer, which can be overridden apparently. But yeah the question’s still there, will we be able to override these at some point?