Can't convert to swift 3 and support <iOS 10?
Can't convert to swift 3 and support <iOS 10?
- Subject: Can't convert to swift 3 and support <iOS 10?
- From: Rick Mann <email@hidden>
- Date: Fri, 09 Sep 2016 02:19:20 -0700
It sure seems like converting to Swift 3 and iOS 10 forces you to abandon previous OS releases. For example, I have this code:
var val: AnyObject?
try getResourceValue(&val, forKey: URLResourceKey.isDirectoryKey)
I get this error:
'getResourceValue(_:forKey:)' is unavailable: Use
struct URLResourceValues and URL.setResourceValues(_:)
instead
Problem is, that only exists on iOS 10.
Am I screwed?
--
Rick Mann
email@hidden
_______________________________________________
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