Category Archives: WWDC

MapKit for iOS 9: Flyover, Transit and Customization


via MapKit for iOS 9: Flyover, Transit and Customization – iNVASIVECODE iOS Blog.

During the WWDC 2015, Apple introduced new iOS 9 features in MapKit. The development community has been requesting these feature for a long time and finally, here they are. Let’s check them in detail.

Event Dispatching in Swift with Protocol Extensions


via Event Dispatching in Swift with Protocol Extensions.

One of the highlights for Swift 2.0 at WWDC was the introduction of protocol extensions: the ability to add default method implementations to protocols. Plenty has been written about protocol oriented programming in Swift since WWDC from bloggers such as SketchyTech, David Owens and Ray Wenderlich, and I thought it was high time to put my own spin on it.

After working with event dispatching in ActionScript for may years, protocol extensions seemed the perfect technique to implement a similar pattern in Swift. Indeed, protocol extensions offer the immediate advantage that I can add event dispatching to any type of object without the need for that object to extend a base class. For example, not only can user interface components dispatch events, but value objects and data structures can too: perfect for the MVVM pattern where a view may react to events on the view model to update itself.

My project, Protocol Extension Event Dispatcher, contains a demonstration application containing a handful of user interface components: a slider, a stepper, a label and a button. There’s a single ‘model’: an integer that dispatches a change event when its value changes via those components.  The end result is when the user interacts with any component, the entire user interface updates, via events, to reflect the change.

This isn’t meant to be a complete implementation of event dispatching in Swift, rather a demonstration of what’s possible in Swift with protocol oriented programming. For a more complete version, take a look at ActionSwift.

Apple WWDC Recap for Mobile Devs


via Apple WWDC Recap for Mobile Devs | Javalobby.

I’m sure you’ve already heard Apple’s big announcements from the annual Worldwide Developer Conference this week.  I was lucky enough to snag a ticket in Apple’s lottery and got to check it all out in person. There were lots of great sessions, with tons of content.  Here are the highlights as I saw them from a mobile developer’s perspective – *not* from the general consumer point of view.  For the most part, I think this year’s announcements highlighted the evolution and maturity of existing products and projects – no new amazing breakthoughs, but definitely steps in the right direction.

If you haven’t seen them already, the Keynote and the Platforms State of the Union videos cover most of the announcements, but not in complete detail. Just be warned, the Keynote is loaded with product marketing fluff, not just developer topics.  Once you get to “we’ve got one more thing…” you can turn off the Keynote – the Apple Music announcement has pretty much zero significance for developers.

So let’s get started…

Security Issues in Swift: What the New Language Did Not Fix


via Security Issues in Swift: What the New Language Did Not Fix | Dr Dobb’s.

Swift is a new language developed by Apple for iOS and OS X development. Introduced at Apple’s developer conference WWDC 2014, the language is designed to eventually replace Objective-C and provide several important benefits, one of which is greater resilience against erroneous code.

In this article, I assess how Swift compares with Objective-C from the security perspective. My team based our comparison on Apple’s Secure Coding Guide document, examining the various security vulnerabilities stated in the document and checking if they can be exploited in Swift. It is important to mention that we explored only loopholes that exist in Objective-C, not new ones that might exist in Swift.

In each case, we use the typical classification for defects, which include the category, the severity, and the likelihood that the vulnerability might be exploited.

Comparison of Python and Apple’s Swift Programming Language Syntax


Click to Read

As a Python and C# developer, I have been intrigued ever since Apple announced the Swift programming language to cheering crowds at WWDC 2014.

This post will explore the syntax of Python 3 vs Swift. I was inspired by Chris Pietschmann’s post Basic Comparison of C# and Apple Swift Programming Language Syntax for C# and Swift. So here is the Python version.