Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 3.1 warning: Conditional downcast from 'CFString?' #9

Closed
jamesbebbington opened this issue Apr 26, 2017 · 2 comments
Closed

Swift 3.1 warning: Conditional downcast from 'CFString?' #9

jamesbebbington opened this issue Apr 26, 2017 · 2 comments

Comments

@jamesbebbington
Copy link

jamesbebbington commented Apr 26, 2017

Hey @cockscomb, thanks for sharing this useful little library.

I'm getting the following warning since upgrading our project to Swift 3.1:

…/UTIKit/UTIKit/UTI.swift:241:82: Conditional downcast from 'CFString?' to 'String' is a bridging conversion; did you mean to use 'as'?

@jamesbebbington jamesbebbington changed the title Swift 3.1. warning: Conditional downcast from 'CFString?' Swift 3.1 warning: Conditional downcast from 'CFString?' Apr 26, 2017
@cockscomb
Copy link
Owner

Fixed in 2.0.1.

Thank you for your report @jamesbebbington 😄

@jamesbebbington
Copy link
Author

Brilliant, that was quick. Thanks @cockscomb!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants