Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'
Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'
- Subject: Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'
- From: Marco S Hyman <email@hidden>
- Date: Mon, 27 Jul 2015 15:18:27 -0700
On Jul 27, 2015, at 3:06 PM, Quincey Morris <email@hidden> wrote:
> The problem is that kSecReturnData is a CFString, which is not a type that’s bridged automatically in the construction of a dictionary. The following works for me in a playground (b4):
>
> let d1 = [ kSecReturnData as NSString : true ]
or
let d1 = [ String(kSecReturnData) : true ]
if you can/want to use a String type.
Marc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden