News for hackers. Stuff that matters.
Re:Introducing Swift by outworlder on Monday June 02, 2014 @02:58PM (#7835177)
Ok, what about runtime support for older devices/iOS versions? They didn't say anything about it.
Re:Introducing Swift by sswezey on Monday June 02, 2014 @06:32PM (#7836918)
I wrote a test app with the newest Xcode and simulator. It does work with iOS 7, with iPad Air, iPhone 4s, iPhone5, etc. I would imagine that it will support at least 6.0 and maybe even back to 5.0.

EDIT: Tested with 6.x and works.

Re:Introducing Swift by wvenable on Monday June 02, 2014 @03:01PM (#7835213)
The keynote says it uses the Objective-C runtime and it compiles to native code -- so one would imagine that it's compatible with older devices and versions. But that is no guarantee.
Re:Introducing Swift by k-mcgrady on Monday June 02, 2014 @03:00PM (#7835199)
They said that they were accepting apps built with Swift for iOS 8 and OSX 10.10 so sounds like it won't work with older OS version. They weren't all that specific about it though so I could be wrong.
Re:Introducing Swift by chenzhekl on Monday June 02, 2014 @03:08PM (#7835326)
New language runs on Obj-C runtime. Maybe apps written in Swift can run smoothly on existing OS.
Re:Introducing Swift by curmudgeon224 on Tuesday June 03, 2014 @12:00AM (#7838063)
Perhaps the bridging to all the Cocoa libs won't be supported pre iOS8
Re:Introducing Swift by IneffablePigeon on Monday June 02, 2014 @03:01PM (#7835225)
Not sure. They said apps with Swift code would be accepted once iOS 8 was released, so possibly not.
Re:Introducing Swift by serg_chernata on Monday June 02, 2014 @02:59PM (#7835197)
They mentioned complete compatibility with C so it sounds like it should be ok.
Re:Introducing Swift by mantrax5 on Monday June 02, 2014 @04:37PM (#7836187)
It'll be available for all devices supported by iOS 8, so going back to iPhone 4S.

The runtime of Swift is also the runtime of Objective-C, but the runtime might need some upgrades to fully support the Swift semantics in a safe manner.

EDIT: Correction. It's available also on iOS 7. Just confirmed by Apple. Great :)

Re:Introducing Swift by sswezey on Monday June 02, 2014 @06:35PM (#7836940)
Do you have a link for the confirmation?
Re:Introducing Swift by mantrax5 on Monday June 02, 2014 @09:34PM (#7837660)
It was clarified during the "State of the Union" talk immediately following the keynote.

The video should be available on Apple's site (or if not, very shortly).