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?
Asked
Active
Viewed 387 times
1

Mathias
- 233
- 3
- 17
3 Answers
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
-
2IMO with Swift one has to type *more* cryptic things. – zaph Aug 18 '14 at 10:52
-
Agreed. Swift seems more cryptic to me too. – uchuugaka Aug 18 '14 at 11:31
-
Yes! More cryptic - but everybody claims it's more readable. I will miss objective c in the (far) future :( – Mario Aug 18 '14 at 15:56
-
I must say that I haven't used Swift myself and just repeated what most people claim. – idmean Aug 18 '14 at 16:03
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