3D touch peek and pop tutorial for your Swift application

3D Touch peek and pop tutorial

Apple added a touch-sensitive layer to the screen of the brand new iPhone 6s (plus).  With the coming of this new screen, they’ve added some new UI interactions like application shortcuts and peek and pop.

In this 3D touch peek and pop tutorial I will learn you how to implement this new way of interacting with your content by building a photo gallery.  When you press hard on the screen you’ll see a preview of the image and if you press really hard the preview will pop into a detail view.

At the end of this tutorial I’ll show you how to add preview actions. This way you can interact with the content without going to the detail view.  You can do this by swiping up while you are previewing the content.

Continue reading 3D touch peek and pop tutorial for your Swift application

Create a bootable USB drive for OSX El Capitan

Everytime when Apple releases new software, I can’t help it to format my computer. I just don’t seem to trust an update of a operating system. I like to create a bootable USB drive because it’s blazing fast to install the OS. For El Capitan, it took me +- 15 minutes with a USB3 stick.

Luckily it is fairly easy to create a bootable USB drive for OSX El Capitan!

Create a bootable USB drive

  • Have a USB stick ready (USB3 is really fast! :-))
  • Format it with the Disk Utility tool (Mac OSX extended format, give the drive the name Untitled)
  • Download OSX El Capitan from the Mac App Store, but quit the update application when it is downloaded.
  • Open Terminal
  • Use the following command
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app/ --nointeraction
  • Type in your password when asked
  • Wait a little while the files are being copied to your USB stick
  • TAKE A FULL BACKUP OF YOUR IMPORTANT FILES
  • Reboot your computer and hold the alt key
  • You’ll see a menu where you can choose to run the installer from the USB drive

Done 🙂

TouchID authentication tutorial for Swift

TouchID

A few years ago Apple introduced TouchID on the iPhone5S. Instead of asking your user for a password, you can just ask for their fingerprint (if their device has TouchID) which improves the UX by a gazillion times.

With the introduction of iOS7, it was impossible for a developer to use the fingerprint sensor for authentication. Luckily in iOS8, Apple provided us with an API to do so.

In this tutorial I’ll show you how you can integrate TouchID authentication in your application.

Continue reading TouchID authentication tutorial for Swift