ribesg
02/07/2020, 4:02 PMUIView.draw
?@ObjCMethod external
extension function of UIView
louiscad
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 AM@kotlinx.cinterop.ObjCMethod public external fun platform.UIKit.UIView.drawRect(rect: kotlinx.cinterop.CValue<platform.CoreGraphics.CGRect>): kotlin.Unit { /* compiled code */ }
louiscad
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?