I'm currently using expect/actual for camera operations on Android and iOS. Android's CameraX integrates beautifully with KMM, but I'm noticing that the iOS equivalent is extremely verbose. When I define a Kotlin class that implements the AV...RecordingDelegateProtocol for use with the AVCaptureMovieFileOutput,
Kotlin forces me to define a lot of extra functions, such as 'class', conformsToProtocol, isKindOfClass, etc that are not related to the Swift equivalent of the interface In case it helps anyone, subclassing NSObject removes the requirement to implement these extra methods. Has anyone else encountered this while trying to use iOS's camera library in Kotlin using expect/actual? (I'm trying to do this in Kotlin, not Swift, so I can use the result in shared code).