Get Updates By E-mail 

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.

SaveTheDot – An Example Game Using The iOS 10 SDK’s UIViewPropertyAnimator

  •  
  •  
  •  
  •  
  •  

UIViewPropertyAnimator added with the iOS 10 SDK makes it easier to animate your views, and allows you to dynamically modify those animations before they finish.

Jake Lin has created a nice example using UIPropertyViewAnimator showing how to create a simple game with interactive animations called Save the Dot.

Here’s an animation from the readme showing SaveTheDot in action:

SaveTheDot

You can find SaveTheDot on Github here.

A nice guide on utilizing the iOS 10 SDK’s UIPropertyViewAnimator.


  •  
  •  
  •  
  •  
  •  

YoCelsius – Open Source iOS Weather App Featuring Great Animations

  •  
  •  
  •  
  •  
  •  

YoCelsius is an open source weather app from You Xian Ming for viewing weather with a beautiful highly animated interface.

YoCelsius uses many open source animation projects in order to achieve the effects seen within YoCelsius.

Here’s an animation from the readme showing YoCelsius in action:

YoCelsius

You can find the YoCelsius source code on Github here.

You can find YoCelsius in the app store here.

You Xian Ming has compiled the open source animation libraries used in the project into a single library that can be found on Github here.

A nice weather app example.

See more open source iOS apps.


  •  
  •  
  •  
  •  
  •  

SwiftGoo – Swift Code Example Using Core Image To Manipulate Images Like Goo

  •  
  •  
  •  
  •  
  •  

SwiftGoo is an open source example from Simon Gladman providing a simple tool with a Goo like image effect.

SwiftGoo is inspired by the Goo effect in Kai’s power tools from the early 90s and uses a Core Image warp kernel to move pixels based on a user’s touch.

This video shows SwiftGoo in action on the Mona Lisa:

You can find SwiftGoo on Github here.

You can read more about how the effect was created in just a few lines of code using CIWarpKernel on the FlexMonkey blog.

An interesting use of Core Image.


  •  
  •  
  •  
  •  
  •  

MMParallaxView – An Example Of The AppleTV Parallax Effect Ported To iOS And Swift

  •  
  •  
  •  
  •  
  •  

MPParallaxView is an open source example from DroidsOnRoids implementing the AppleTV parallax effect in Swift on iOS.

MPParallaxView shows how to create a similar parallax effect with touch based control and accelerometer based control.

You can also tweak some of the parameters within interface builder to see how they change the effect, and you can also switch between touch and the accelerometer in interface builder.

This image from the readme shows MPParallaxView in action:

MPParallaxView

You can find MPParallaxView on Github here.

A great parallax effect.

 


  •  
  •  
  •  
  •  
  •  

Swift Sound Processing Library For Apps That Require Pitch Detection Of Microphone Audio

  •  
  •  
  •  
  •  
  •  

TuningFork is an open source Swift sound processing library by Comyar Zaheri that simplifies the detection of pitch, frequency, and amplitude of audio.

Tuningfork works directly on microphone input so you can easily create apps that require pitch detection such as tuning apps.

Partita is an example open source instrument tuner app that utilizes tuning fork with a nice interface.

Here is an image showing Partita in action:

Partita

You can find the TuningFork sound processing library on Github here.

You can find the Partita instrument tuner source code on Github here.

An easy to use sound processing library great for tuning apps.


  •  
  •  
  •  
  •  
  •