I'm running into an issue when enabling C++ interop. I've check this in both an app enabling C++ interop as well as a swift package.
Code that was previously compilable I'm noticing is getting a number of errors. Below are a few examples.
Foundation
Issue 1 - CGSize
var viewportSize: CGSize = CGSize()
This compiles without issue with interop disabled but gives the following message with interop enabled.
Missing argument for parameter 'from' in call
Issue 2 - Notification Center Notification.Name
NotificationCenter.default.removeObserver(self, name: .AVCaptureDeviceWasDisconnected, object: nil)
NotificationCenter.default.removeObserver(self, name: .AVCaptureDeviceWasConnected, object: nil)
It seems that .AVCaptureDeviceWasDisconnected
and .AVCaptureDeviceWasDisconnected
are no longer available when interop is enabled.
I've seen a few more. Is this a known issue, or are some of these implementations changed when I enable interop?
Thank you