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: Source Code Release To Popular iOS RTS Game Warfare Incorporated

As you may know I have been maintaining lists of open source iOS apps, and open source iOS games for about 5 years.

Here’s an iOS  source code release to the fantastic Warfare Incorporated RTS game called Hostile Takeover from Spiffcode.

As the readme states:

Hostile Takeover is the open source release of the wildly popular mobile Real Time Strategy game Warfare Incorporated. Warfare Incorporated’s developers, grateful for all the contributions of the open source community, are delighted to give something back.

Examples: A Collection Of Popular Design Patterns Implemented In Swift

Last month I mentioned a nice tutorial on avoid issues when moving from Objective-C to swift.

Here’s a project that providing an Xcode 6 playground with examples of a number patterns that you can use within your own projects, or just for learning called Design-Patterns-In-Swift from Oktawian Chojnacki.

Some of the design patterns included are:

- Singleton
- Builder
- Abstract Factory
- Prototype
- Facade
- Strategy

Example: A Swift Language Based Hacker News Reading App

I’ve posted about a few open source hacker news clients listed on the open source apps list.

Here’s an example hacker news client built-in Swift called SwiftHN released by Thomas Ricouard.

While more features are on the way, the client allows you to read the news, view articles, view comments, and send articles to the Safari reading list. The client uses a library called HackerSwifter providing a Swift based parser for creating your onw Hacker News client.

Example Source Code: A Unique iPad 3D Modeling App With Export Features

Previously I mentioned a couple of open source libraries allowing you to create some interesting graphical effects from Bartosz Ciechanowski – BCGenieEffect which allows you to apply genie animation effects similar to those seen in OS X to a UIView, and CAMeshTransform which allows you to apply animated mesh transforms to a view.

Example: A Punch Clock App That Uses Geo-fencing With iBeacons

Earlier this year I mentioned a nice tutorial on creating a treasure hunting app utilizing iBeacons.

Here’s a very slick open source app called PunchClock from Panic that utilizes iBeacons.

PunchClock uses geofencing to automatically track when a worker enters into the area, and they automatically punch in, and punch out with a beautiful interface showing those who are in or out.

Here’s an image showing PunchClock in action from the readme: