Apple WWDC Recap for Mobile Devs
Join the DZone community and get the full member experience.Join For Free
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…
there was a tremendous emphasis on the swift language at this year’s wwdc event. there was the announcement that swift is going to be open sourced , plus many language enhancements, and nearly every piece of sample code that was shown was written in swift. it is very clear that swift is apple’s direction moving forward.
the swift language itself has also evolved quite significantly. better error handling, protocol extensions, and improved performance are a great start. heck, if i understood one of the speakers correctly, it’s now even faster than objective c at runtime in some cases.
want to learn more about swift? check out these session videos from wwdc (requires safari):
- what’s new in swift
- protocol oriented programming in swift
- optimizing swift performance
- swift in practice
- improve your existing apps with swift
- swift and objective-c interoperability
new versions of both os x and ios were announced and released to developers… os x el capitan and ios 9 respectively. both seem to be incremental updates of the previous oses. new apps, new features, etc… for the end users. not necessarily significant changes for developers. if you’re a graphics programmer, metal will be a big deal for you (low level graphics/gpu api), but if you’re not a graphics guru, you probably won’t even know its there.
the new ios 9 multitasking/side-by-side mode for ipad is going to be a great addition which brings the ipad even closer to being a full laptop replacement. having the ability to have multiple apps open next to each other will improve the ipad’s “get $h1t done” ability. you’ll have to ensure that you’ve authored your apps to leverage adaptive layouts, but that’s pretty much all that you need to do to take advantage of ipad multitasking.
these videos will get you going in the right direction for ios multitasking and adaptive layouts:
- getting started with multitasking on ipad in ios 9
- multitasking essentials for media-based apps on ipad in ios 9
- mysteries of auto layout, part 1
- mysteries of auto layout, part 2
the new “ app thinning ” features in xcode 7/ios 9 are also a great addition. currently if you build an ios app it gets bundled with lots of resources that may never be used depending on the type of device. app thinning introduces three concepts that help minimize the footprint and increase the quality of your installed apps: app slicing , on demand resources , and bitcode . according to the presenters, these can decrease the download/installed size of your apps quite significantly.
if you haven’t seen the app thinning in xcode session, you should definitely check it out.
app slicing is a new feature that creates variants of your app executable depending on the device that you are downloading the app to. so, if your app doesn’t use @3x graphics, or doesn’t use the arm7s architecture on a particular device, then they won’t be downloaded. likewise, if your device does leverage those assets, then the other smaller scale assets and non-used binaries won’t be downloaded.
on demand resources give you the ability to download specific sets of resources from the app store as they are needed. they are still hosted by the app store, but not part of the initial download. let’s say you are building a platform game. initially the shell/navigation assets will be downloaded. while the app is running you’ll be able to download assets for level 1, level 2, level 3, etc… incrementally as they are needed. the system can also clean up odr resources to conserve space using a least-recently-used cleanup routine.
bitcode is an intermediate representation of a compiled program. apps you upload to itunes connect that contain bitcode will be compiled and linked on the app store. including bitcode will allow apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.
bitcode enables the app store to re-compile your code to take advantage of new llvm optimizations without you even having to recompile and upload a new application binary.
the new ui testing features in xcode 7 look pretty awesome as far as automated ui testing goes. it enables you to record/playback steps and generated ui unit tests all from within xcode. what’s even better, it enables you to set breakpoints within your tests, so you can debug why your tests might be failing, or you can set breakpoints inside of your app, and the automated testing stops at the breakpoints and allows you to step through code while inside the automated unit test. definitely do not miss the session on ui testing in xcode 7 if you have any (even remote) interest in automated ui testing, it looks pretty darn useful.
improved search and deep linking
improved search functionality was also announced for both ios and os x. this improves the search functionality, and also enables your apps to index their content, so using the device search enables you to search for information hosted *inside* of the app. to complement the enhanced search, there are also features that better facilitate deep linking into your app. this enables apps to be launched directly into the appropriate content/context with greater ease. i need to look into this more, but it sounded interesting…
check out these resources for additional detail:
last, but by certainly no means least, the announcement of watchos 2 looks like a massive leap forward for developing for the apple watch.
watchos 2 brings us the ability to execute code natively on the apple watch, not just in the watchkit extension running on your iphone, brings us the ability to implement custom watch complications, access to network connectivity if your phone is not connected, support for multimedia, and direct access to hardware sensors. if you’re wondering what “ watch complications ” are, they are the widgets on the watch face that enable you to display customized information.
you should definitely check out the videos on developing for the apple watch if you have any interest in watchos:
- building watch apps
- introducing watchkit for watchos 2
- layout & animation techniques for watchkit
- watchkit in-depth, part 1
- watchkit in-depth, part 2
- introducing watch connectivity
- designing for applewatch
there are also new apis, enhanced features in cloudkit, mapkit, homekit, core motion, core location, updates to apple pay, security updates, networking updates, and lots more. be sure to check out the complete list of wwdc videos for more.
there was so much to absorb, i’m sure i missed something, so feel free to point anything out that i’ve overlooked!
Published at DZone with permission of Andrew Trice, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.