Sign in

Senior iOS Engineer at Onfido. 7+ years experience with iOS and Swift. Blogging my knowledge and experience.

Codable is standardised approach to encoding and decoding data in different formats to and from Swift. In simple this means converting say from JSON to Swift and back. Additionally you can do the same conversion from and to other formats too.

The Codable mechanism along with the JSONDecoder and JSONEncoder…

Computer Vision

Photo by Albert Hu on Unsplash

Are you looking to make your physical business contactless? COVID-19 has transformed how business with physical presence need to interact with their customers. Many customers now expect the ability to perform transaction on their mobile devices. Restaurants in the UK only allow to view their menu through your mobile phone…

Swift Programming

Photo by Erik Mclean on Unsplash

KVO and KVC or Key-Value Observing and Key-Value Coding are mechanisms originally built and provided by Objective-C that allows us to locate and interact with the underlying properties of a class that inherits NSObject at runtime. …

MODULAR IOS

Photo by Tekton on Unsplash

This is an update to my original post Reusing code with Swift frameworks. The original post showed how to reuse UIKit based code packaged as a framework. Since then Apple has introduced SwiftUI and this post will show you how to reuse your SwiftUI code.

SwiftUI has brought a natively…

UIKit

Photo by Taylor Wilcox on Unsplash

Storyboards and Interface Builder(IB) are great when you start a new UIKit based iOS project. However they can soon loose their appeal as you develop more complex screens, UIs and user flows.

Alternatively you can start develop your UI programmatically. …

Swift Programming

Photo by Diana Polekhina on Unsplash

This article is about how to do Dependency Injection in Swift using Property Wrappers. I assume you are familiar with Dependency Injection and Swift Property Wrappers. Furthermore you should be familiar with the basics of Swift and iOS development.

But before I show you how to do dependency injection using…

Swift Programming

Photo by Ronise daluz on Unsplash

What is a property wrapper in Swift?

A property wrapper adds a layer of separation between code that manages how a property is stored and the code that defines a property.

-swift.org

In all honesty when I read this bit from Swift.org’s documentation I did not quite understand what property…

Concurrency

Photo by Braden Collum on Unsplash

How do you execute multiple pieces of code at the same time? When beginning coding we are taught code that executes serially or one after the other in order.

Let’s look at an example. Let’s say you’re making a simple salad. Here are the ingredients:

  • lettuce
  • tomatoes
  • red onion
  • sweetcorn

Computer Vision

Looking to solve Computer Vision problems using OpenCV? Maybe you are developing an OpenCV algorithm to be used on multiple platforms like iOS and Android.

A great way to develop cross-platform OpenCV algorithms is by writing them in C++ and using Xcode. Both platforms support running and binding to C++…

Security

Photo by Georg Bommeli on Unsplash

The word Cryptography is derived from the Greek words Kryptos and Graphy. Kryptos means hidden and Graphy means writing. Thus Cryptography means hidden writing.

Cryptography:

the science or study of the techniques of secret writing, especially code and cipher systems, methods, and the like

Dictionary.com

This post is an introduction…

Anurag Ajwani

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store