Reputation: 233
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 CALayer
s a lot instead of NSView
s. 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
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
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
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