I'm trying to implement
override public func value(forUndefinedKey key: String) -> Any?
in an INIntent subclass, but when I do, I get this error message: "Overriding 'value' must be as available as declaration it overrides"
I believe this is due to the class declaration being wrapped in an @available(iOS 12.0, *) attribute. So, how do I override this method?
The reason I need to do this is that I've added a property to an existing Intent, and when I try to access this property ion an intent that was created before it was added, I get an NSUnknownKeyException. This is happening in iOS 12, and perhaps 13 (I don't recall). Should I create a new intent Class with this new property to avoid this, or is there a known workaround?