Thanks,
var toExcludeOrCopy : AnyObject?
Could help me on some cases...
But if I try this:
var props = [AnyObject]()
props += contact.phoneNumbers
( "contact" is as CNContact, so "contact.phoneNumbers" is
[CNLabeledValue]
)
I get this error:
/Users/laullon/xcode/bipo/BiPo/MergePreview.swift:8
Ouch!
This is a side effect of ObjC lightweight generics being imported as Swift
generics in Swift 3.0.
Since there is no common superclass that satisfies NSCopying & NSSecureCoding
and the fact that NSSecureCoding has static requirements means you can’t do it
(at least without hacks such as e
Hi All
I just upgrade to Swift 3. After open and convert my codes I found lots of
errors. One of them is about CNLabeledValue.
With Swift 2.3, it works well with:
var toExcludeOrCopy : CNLabeledValue?
With Swift 3, it gives me the error message:
Reference to generic type 'CNLabeledValue' requir