Your 3D Touch Spirit Guide

Before diving in to 3D Touch, there is one thing we need to learn first to ensure your app doesn't crash when using these new 3D Touch APIs at runtime. Before implementing any of the 3D Touch features linked below, don't forget to wrap your 3D Touch code in this check wherever it's appropriate!

if traitCollection.forceTouchCapability == .Available {
    //3D Touch code goes here

Additionally, you can also use the new Swift availability APIs to make sure your code doesn't run on devices that are running an OS older than iOS 9.