1

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?

Mathias
  • 233
  • 3
  • 17

3 Answers3

4

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.

idmean
  • 14,540
  • 9
  • 54
  • 83
0

No, unfortunately not.

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

Community
  • 1
  • 1
OriginalUtter
  • 619
  • 3
  • 15
  • 28
0

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.

uchuugaka
  • 12,679
  • 6
  • 37
  • 55