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
As developers, we have a responsibility to protect our users' data in a responsible way. There are many ways that you can mitigate the risks of a data breach in your app, but in this post I'm going to focus on an easy technique that anybody can implement. You can make it more difficult for … Continue reading Code Snippet: Jailbreak Detection
Every iOS device has the ability to be used as a torch. Developers have access to use this torch through AVCaptureDevice. You can copy this function into your app and using the setTorch boolean parameter, you can switch it on and off. You can also adjust the level of intensity on the torch by adjusting … Continue reading Code snippet: Using AVCaptureDevice to access Torch
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
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
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
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
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
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
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