Tag Archives: Swift

Swift Execution: Apple’s New Programming Language Shakes Up Tech Community

In July 2010, Chris Lattner, at the time a Senior Manager and Architect for Apple, began working on a brand new programming language. He developed it at night and on weekends and told no one, not even his closest friends and colleagues. After a year and a half, he had outlined the basics of the new language and proceeded to reveal his creation to the top executives at Apple. Initially impressed, they gave him a few seasoned engineers to help on the project. After 18 months, it became a “major focus” for the company with a huge team of developers working with Lattner. Little did Lattner know in July 2010, he had begun a project which would potentially change the world of app development.

Swift is Lattner’s creation: a new programming language developed and marketed by Apple designed specifically for iOS and OS X development. Companies have created programming languages before, such as Go, a language created by legendary designers Ken Thompson and Rob Pike for Google, but Swift is a different beast. Wired says “[Swift] could achieve mass adoption with unprecedented speed.”

What exactly makes Swift so groundbreaking? For one, it’s designed specifically for iOS. App developers are constantly designing apps for Apple products, be it iPhones, iPads or MacBooks. Apple is at the forefront of the tech revolution and every year pushes the industry forward into the future. Swift offers a language which caters directly to iOS and OS X development. It will soon become the premiere language on which to develop iOS and OS X apps.

Swift is also more approachable than previous counterparts. “It’s more of a helpful language. It understands what you’re doing a little bit better and allows the computer to help you figure it out a bit better,” says Mike Ash, a programmer for Plausible Labs, in Wired. Swift hopes to appeal to the average programmer and make the process of coding not only easier, but more interactive.

One of the most innovative and exciting features in Swift is PLAYGROUND. Playground allows developers to code on one side of their computer screen, while watching the results appear on the other side. It makes coding not only more fun, but more interactive.  At the Apple World Wide Developers Conference, Lattner demonstrated the feature by making real-time changes to an animated circus game while the crowd watched.

Check out the video of Lattner’s demonstration via YouTube. (Note: the video opens with Apple’s initial introduction of Swift featuring a bunch of great, specific info for iOS developers. Lattner’s presentation begins at 3:30).

Playground was designed with the hopes that “By making programming more approachable and fun, we’ll appeal to the next generation of programmers and to help redefine how Computer Science is taught.” says Lattner on his homepage. Objective-C forced developers to wait for their project to compile and run before allowing them to test any code changes, a time-consuming process. The instant feedback of Playgrounds makes the process of coding less daunting and more fun for neophytes.

Swift aims to replace Objective-C, which is the most prominent coding language (and will remain so until Swift [presumably] seizes the crown). Swift doesn’t aim to replace Objective-C off the bat. As mentioned in the Apple Developers Conference, Swift can work concurrently with Objective-C to fit into an app originally developed using Objective-C, however, the hope is that when Swift gains popularity Objective-C will become obsolete for iOS Developers.

Objective-C and Swift are different in a number of ways. As we’ve discussed, Swift is more accessible to new developers. The abbreviated syntax makes for easier and more intuitive coding, at the expense of being less verbose (easy to read) than Objective-C. Switching over to Swift, experienced developers will have a bit of an adjustment period before they can read it with ease, but it’s a minor set-back considering Swift’s potential impact on the developer community.

For more on the differences between Objective-C and Swift, check out this awesome run-down via fastcolabs.com

While only time will tell what Swift’s ultimate legacy in the developer world will be, the immediate impact is undeniable. Swift has already been thrust into computer science curriculums across the country. The interactivity in the app development process created by Playgrounds makes coding more accessible and will surely draw a lot more people into app development. The big question is whether Swift will convince non-Apple developers to migrate.

For more first-party information on Swift, check out Apple’s Swift Developer Guide. Also, stay informed on the latest updates by checking Apple’s Swift Blog.

Mystic Media is an app development and marketing firm with vast experience in iOS and Android application development. Learn more by clicking here or by phone at 801.994.6815

Climbing Yosemite: Apple’s New OS Reaches New Heights

Apple recently released the long awaited OS X Yosemite. In Bite the Apple: Maximize iOS 8 to Vanquish Your Competition  and Tilting the Playing Field: iPhone 6 Technology Expands Possibilities for iOS App Developers, we covered  some of the highly-anticipated features in Yosemite, including a host of opportunities for cross-device Continuity. This week, we take an in-depth look at OS X  Yosemite and what it means for developers.

AESTHETICS

You shouldn’t judge a book by it’s cover, but when it comes to operating systems, aesthetics matter (check out our article Impervious Appeal: How to Design Jaw-Dropping iOS Apps). Yosemite’s UI remains consistent with Apple aesthetics and makes an effort to push the concept of flat design further. It’s even more minimal; the icons are flatter; the windows are more translucent. A great example of the evolution from Mavericks to Yosemite is a comparison between their Calendar icons:

Yosemite Calendar Icon

Mavericks Calender Icon

 

 

(left is Yosemite, right is Mavericks)

via Apple Developer Library

Whereas Mavericks had a more skeuomorphic design on its Calendar icon, Yosemite is flat. The texture seems impossibly smooth. There’s a minor depth and shadow, but no effort to enumerate the pages, nor a two-hole binder holding the pages together. The Yosemite icon represents the calendar as a digital block. The colors are brighter and the text is crisper and more symmetrical throughout the Yosemite UI. The font is an optimized version of Helvetica Neue used throughout Yosemite, a big switch over from Lucida Grande of the past. Developers, take note and utilize these aesthetics to create apps which integrate seamlessly into the Yosemite environment.

SWIFT

iOS 8 and the iPhone 6 arrived with Metal, a graphics layer for iOS development. Yosemite launches with Swift, a multi-paradigm, compiled programming language optimized for iOS 8 and OS X Yosemite app design. Swift has been in development over the past four years and may replace Objective-C as the main language for app design on Apple’s OS X and iOS platforms. Several apps have already been built with Swift, including LinkedIn and Yahoo Weather.

Programmers, learn more about Swift over at The Guardian.

CONTINUITY

OS X Yosemite begins Apple’s push toward complete device Continuity. The concept of Continuity entails one should be able to switch devices and complete the same tasks on any Apple device without hassle. So if I’m writing an email on my MacBook, I should be able to go into another room and seamlessly finish it on my iPad without having to save or close the message. One of the simpler, but more effective ways in which Apple introduces this concept is allowing users to answer calls on their MacBooks when their phones are within a certain radius.

Another major push for Continuity in Yosemite is the Instant Hotspot feature. Instant Hotspot allows MacBooks to connect with the cellular network on their iPhones when no other Wi-Fi network is available. It also conveniently shuts down inactive iPhones when in-use. The big advancement for Continuity, however, is the application Handoff.

Handoff is among the most exciting new features of Yosemite and the major aspect of Apple’s push for Continuity. Once you get through the confusing set-up, Handoff proves to be a practical application of the concept. When you’re working on a task on your MacBook, an icon appears on your iPhone/iPad lock screen which allows you to immediately pick up whatever task you were working on using the MacBook without losing a beat. It also works the other way, with the Handoff icon appearing to the left of the Dock on your MacBook when you’re switching over from an iPhone/iPad. With Continuity, devices are constantly communicating to better serve the user. Continuity represents a major advancement designed to get users completely consumed in the world of Apple devices. Although Handoff has its kinks, it effectively executes the Continuity concept and ultimately proves to be the biggest, most exciting advancement in OS X Yosemite.

CONCLUSION

Overall, OS X Yosemite is a major step forward for Apple products and aesthetics. It retains a cool look, intuitive functionality, and its steps toward complete device Continuity are clearly indicative of technology of the future. Apple has already put together a featured list on their App Store of Great Apps for OS X Yosemite, it will be exciting to see how app developers follow Apple’s lead and take advantage of the latest OS to enhance their apps.

Mystic Media is an app development and marketing firm specializing in both iOS & Android development, and more. Learn more by clicking here or by phone at 801.994.6815.