Get Updates By E-mail 

Subscriber Counter

iOS Development Source Code Examples

This section is for app source code examples and code snippets that do not come with an in-depth tutorial.

Example: Using The iOS Facial Gesture Recognition On A Live Video Feed

Previously I mentioned a nice tutorial on using the facial detection feature of the iOS SDK on a live video stream.

Here’s a nice example from Danny Shmueli showing how to use the facial gesture recognition on streaming video added with iOS 7 for detecting blinking, and smiling gestures.

One of the key issues with using this facial gesture recognition feature is that performance, and the example does a nice job of handling this issue. The logic has been nicely extracted so you can use this gesture recognition in your own projects.

Example: A Swift Based Photo Editing Extension Created With The iOS 8 Photos Framework

Last week I mentioned a nice set of source code examples demonstrating usage of many new iOS 8 features.

Here’s a nice source code example submitted by Dariusz Rybicki of a photo editing extension created with the new Photos framework called SwiftMustaches.

The example provides an extension that runs directly within Photos app providing an option for users to add a mustach to a photo using Core Image’s face detection functionality.

Example iOS Source Code: A Full Featured PDF Reader App

I’ve mentioned a number of open source projects for working with PDF files most recently ILPDFKit for working with PDF forms, and BNHTMLKit for easily generating PDF files from a URL or HTML string.

Here’s an open source example pdf reader app providing a full featured book reader style experience called GreatReader from Shohei Miyamoto.

The features of GreatReader include:

- iPhone/iPad Support
- iBooks Like Design
- Zooming in/out with double tap
- Rotation handling
- Reading histories view
- Cropping for zooming
- Document Outlines

Example: An Extensive News Reader App Built In Swift

A couple of months ago I mentioned a nice news reader app created in swift for the hacker news called SwiftHN.

Here’s a complete open source news reader app created entirely in Swift for The Oakland Post from Andrew Clissold.

The app provides an extensive feature set listing stories with image thumbnails, and post times, a nice clean reading experience, and a photo browser. The example utilizes a number of open source projects including the RSS feed parser MWFeedParser, and the asynchronous image downloading library SDWebImage.

iOS Tutorial And Code Example On Creating Tinder Style Swipe-To-Choose Views

Earlier this year I mentioned a  component for implementing Tinder style swipe-to-choose cards called MDCSwipeToChoose.

Here’s a nice tutorial that goes step-by-step through the process of creating cards with cool Tinder style dragging animations from Nimrod Gutman.

Specifically the tutorial covers:

- Setting up a draggable image view
- Modifying the rotation and scale while the image is being dragged to match the effect seen in the Tinder app
- Adding overlay images as the image is dragged
- Performing the selected action