Generic placeholder image

Gurjit Singh

I'm an iOS developer with a degree in computer science, and I write about Swift, Xcode, and iOS development. I specialize in developing products, with a focus on the iOS, Android, and web platforms.

Latest Articles

How to Get Started with SwiftUI in 5 Minutes

SwiftUI is a simple and fast way to make user interface but it's quite young and missing lot of features used to make complex apps.

Apr 28, 2023 . 5 min read     SwiftUI iOS

Read More »

Dealing with App Transport Security in Xcode

What is App transport security(ATS)?. App transport security improves user security and privacy by making secure connections to network.

Apr 12, 2023 . 2 min read     Xcode Networking

Read More »

How to cache data in Swift using NSCache

When we develop apps for iOS, we need to perform heavy tasks such as loading images from the network, loading files, etc. It’s a very...

Apr 7, 2023 . 2 min read     Swift NSCache

Read More »

How to use enum in Swift Empty space for void

Enumerations (enum) enables you to write code in a type safe way. Enum is very useful while defining common type of values. You don't have to provide...

Mar 7, 2023 . 2 min read     Swift Enum

Read More »

Optional unwrapping syntax in Swift 5.7 Empty space for void

Optional unwrapping is one of the most used patterns in iOS development. Swift 5.7 introduces new features included a new way to unwrap optional values...

Jun 14, 2022 . 2 min read     Optional unwrapping

Read More »

Property observers in Swift Empty space for void

It's a common pattern or technique in various programming languages when we want to perform some action when a value is changed. Property ...

May 24, 2021 . 2 min read     Property Observers

Read More »

How to use guard in Swift to write code more readable

It's necessary to write more robust and simple code as long as your project goes more complex. Every line of code you are writing is matters...

Mar 29, 2021 . 2 min read     Swift Guard

Read More »

How to implement app ratings and reviews in Swift

When you are developing app keep in mind that it is very important to engage users and ask for feedback to improve your app’s experience. Your app’s...

Mar 18, 2021. 2 min read    Reviews StoreKit

Read More »

App Store screenshot guidelines for iOS and iPad app

You built your iOS app after lot of hard work and now is the time to list your app on App Store. When you list your app on App Store you need screenshots...

Mar 10, 2021 . 3 min read     iOS App Store

Read More »

How to implement Recursion in Swift

In Computer Science, recursive function is a function that calls itself to solve problem and this technique is called recursion. Almost all programming...

Oct 29, 2020 . 2 min read     Swift Algorithms

Read More »

Implement Binary Search in Swift

In computer science, there are two types of algorithms commonly used to solve a problem searching and sorting algorithms. Its valuable to...

Sep 14, 2021. 2 min read    Swift Algorithms

Read More »

Difference between Struct and Classes explained in Swift

Structures and Classes are basic templates for any application which consists of properties and methods implements for behaviour .You can define...

May 06, 2020 . 2 min read     Swift Class Struct

Read More »

Published Articles

How to hit an API and parse json data Empty space for void

In the world of apps, practically all apps use web services to get data from the internet. It enables user to send and receive data from…

Mar 22, 2023 . 4 min read . In Level Up Coding

Medium »

How to integrate AdMob to an iOS app

You successfully created an app and uploaded it to the app store. You want to finally reap the rewards of your work. You have a variety of…

Aug 22, 2022 . 4 min read . In Level Up Coding

Medium »

The closures in Swift are explained with examples

Closures are a difficult topic to grasp in Swift, but they are simple to grasp if well described.Closures are functional blocks that can be…

Apr 13, 2021 . 3 min read . In Mac O’Clock

Medium »

How to use guard in Swift to write code more readable

When your project becomes more complex, you’ll need to write more stable and simple code. Every line of code you write is important because the…

Apr 10, 2021 . 2 min read . In Mac O’Clock

Medium »

Difference between weak and unowned references…

It’s a good practice to know how memory management works in Swift. Swift uses Automatic Reference Counting (ARC) to…

Jul 12, 2020 . 3 min read . In Level Up Coding

Medium »

The ultimate guide to iOS Unit Testing with Swift and Xcode

Unit testing is a testing method where you can test “unit” of code whether it is working as you want or not. In Xcode, use XCTest…

Jun 29, 2020 . 2 min read . In The Startup

Medium »

Get free apps from the App Store and Play Store

Download on the App Store Get it on Google Play

Like to support my work

☕️ Buy me a coffee