Re: [swift-users] CNLabeledValue var

2017-01-11 Thread German Laullon via swift-users
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

Re: [swift-users] CNLabeledValue var

2017-01-09 Thread Hooman Mehr via swift-users
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

[swift-users] CNLabeledValue var

2017-01-09 Thread German Laullon via swift-users
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