Tutorial: Introduction to Apple’s new SwiftUI framework

Apple's all-new declarative UI framework SwiftUI is here! It is not likely that adoption will be high in a professional environment for a little while, however, it is still fun to play with this new framework which could revolutionize app development. SwiftUI has some very powerful capabilities built in, such as the cross-device compatibility, automatic … Continue reading Tutorial: Introduction to Apple’s new SwiftUI framework

Notifications vs Delegates vs Closures

When developers first start iOS development, a problem that will arise pretty quickly is "How do I pass data between my objects?". Fortunately, there are many solutions for you to choose from, but this causes a problem in itself. Which one to choose for your situation? It is important that you pick the correct solution … Continue reading Notifications vs Delegates vs Closures

Code Snippet: Creating a custom ImagePickerViewController, like Instagram

The standard iOS UIImagePickerViewController is a great way for beginners to get started to accessing the camera and photo library. However, it isn't used by any of the major photo sharing apps, they all have custom ImagePickers. It is possible to create your own ImagePickerViewController and improve the aesthetics of your photo application. It will … Continue reading Code Snippet: Creating a custom ImagePickerViewController, like Instagram

Tutorial: Creating CAShapeLayers using UIBezierPaths

Icons are essential in iOS development. They can be used to display navigational information throughout your application, many of which will be familiar to the user, such as the search and home icon, as they are similar throughout app design. But what is the best way of delivering these icons to your users? We could … Continue reading Tutorial: Creating CAShapeLayers using UIBezierPaths

Tutorial: Using Swifts Codable Protocol

Parsing JSON into objects is a core part of object orientated programming. Almost every application relies on using a process to decode JSON safely. In Swift now, Apple has provided a mechanism to help simplify this process for developers. Swifts Codable protocol maps the coding keys on your object models to the JSON that has … Continue reading Tutorial: Using Swifts Codable Protocol

Tutorial: Firebase Dynamic Lists

Google's Firebase platform includes the Real-Time Database. This is a fantastic way to coordinate quickly changing data to your application. The beauty of using this mechanism is the fact that when a change is made to your data, a notification is sent to your application to update the relevant piece of data. There are two … Continue reading Tutorial: Firebase Dynamic Lists

Tutorial: Writing Unit Tests with XCTest

Testing is a fundamental part of baking in quality to your codebase. Testing helps quickly check that all the functionality in your app is working and ensures that you are writing better code. Fortunately, with XCTests, writing unit tests for functionality in your app is simple. Tutorial: To start with, get yourself a test project. … Continue reading Tutorial: Writing Unit Tests with XCTest

Tutorial: iOS Photo Slider View

This is an effective image slider that you can use to show your users multiple images inside a single window. This the user can swipe the Photo Slider or use the UIPageControl to change the current image. Tutorial: Start with an empty single application template. First, we put a UIView into the UIViewController in the … Continue reading Tutorial: iOS Photo Slider View