I actually first wanted to learn Swift not for iOS but to build a Mac app. I couldn't even get past the ugly syntax with Obj-C but Swift seemed to be much more friendly. Previously to build native apps for iOS and OS X (and now Apple Watch) you had to use Objective-C. NW.js that let you build using HTML but it's not truly native and there will always be things you can't do.Īt last year's WWDC, Apple introduced a new programming language that they see as the future of development on their platforms - Swift. Objective-C developers are also able to switch from iOS to OS X and vice-versa with very little difficulty. Oh, and now the Apple Watch is here, how do you even go about building something for that with HTML5? Sure there's ngCordova which covers a fair amount of them but there's still stuff missing like MapKit. The problem with it came when you wanted to access some of the device's native APIs. Bringing with it a solid framework, set of styles, and boilerplate interfaces to make development rapid. Ionic came along and fixed a lot of that. You'd have to style everything up yourself and then just bung it in a Cordova/PhoneGap/Titanium wrapper. For a long time this involved a lot of leg-work to make the app look and feel like it even remotely belonged to the respective platform. That is to say one that utilises web technologies and can run on both iOS and Android. It's strange for someone coming from a web background, knowing only JavaScript, PHP and a little Ruby.īecause I already knew HTML, CSS, and JS, whenever a project came in for a mobile app I would opt to just build a "hybrid" app. To get an object to do something for you, you send it a message. Well, I guess they do but they're called messages. The syntax was ugly and the naming conventions weren't what I was used to.įor example, methods in Objective-C don't exist. Ever since their introduction, back when iOS was called iPhone OS, I wanted to craft something but Objective-C and its obscurity put me off.
![swift os x programming swift os x programming](https://www.appcoda.com/wp-content/uploads/2019/03/mt1_5_macos_project_xcode.png)
![swift os x programming swift os x programming](https://i.pinimg.com/originals/4d/f6/a9/4df6a9d25730e2ca9f2b745282e418e1.png)
Swift os x programming how to#
For years I put off learning how to make iOS apps.