Mathias
Mathias

Reputation: 233

Is Swift a solution to "porting iOS app to OSX"?

I've read a bit about Swift and it seems to be a lot easier to draw using Swift. When porting an iOS app to OS X there's the issue of nested UIView's not working the same way in OS X, and that you have to use CALayers a lot instead of NSViews. Is Swift a solution to this issue? Can Swift help me to draw content for OS X that originates from iOS?

Upvotes: 1

Views: 389

Answers (3)

uchuugaka
uchuugaka

Reputation: 12782

Swift is just a language. Nothing special in it for porting. UIKit views have Core Animation baked in basically. AppKit added CALayers after years of them not even being a concept. The two APIs are different but not so different that it should matter much or be too difficult.

Upvotes: 0

idmean
idmean

Reputation: 14865

No, Swift is just another language. It's a different syntax, but Cocoa and UIKit itself don't change. Swift can't help you drawing something easier.

Swift also has absolutely nothing to do with porting apps.

Upvotes: 4

OriginalUtter
OriginalUtter

Reputation: 669

No, unfortunately not.

Porting from iOS to OSX is discussed briefly in this question: port an iOS (iPhone) app to mac?

Upvotes: 0

Related Questions