Get weekly updates on the newest tips and tricks about iOS development, Xcode and Swift from Gurjit

All Articles


Property observers in Swift

It's a common pattern or technique in various programming languages when we want to perform some action when a value is changed. Property observers are used in Swift when we want to perform an action when the value of a property changes.

May 24, 2021 . 2 min read     Swift Property Observers

Read More »

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 used or passed around in code.

Apr 11, 2021 . 3 min read     Swift Closures

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 because the more your code cleaner the more ..

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 reviews and ratings will display on App Store which helps to increase downloads ..

Mar 18, 2021 . 2 min read     Reviews StoreKit Ratings

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 which shown on App Store.

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 languages support recursion…

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 know which algorithm to use to perform a ..

Sep 14, 2020 . 2 min read     Swift Algorithms

Read More »

Difference between weak and unowned references explained in Swift

It's a good practice to know how memory management works in Swift. Swift uses Automatic Reference Counting (ARC) to manage app's memory automatically without write any additional code.

Jul 12, 2020 . 3 min read     Swift iOS Development

Read More »

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 framework to perform unit tests.

Jun 29, 2020 . 2 min read     Xcode Testing

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 structure or class..

May 06, 2020 . 2 min read     Swift

Read More »

Custom Operators in Swift Empty space for void

Swift provides a very useful feature which is to define your own custom operators. It is a very confusing topic in the beginning but it is very powerful to use.It increases our code readability..

May 04, 2020 . 2 min read     Swift

Read More »

Protocol Extensions in Swift Empty space for void

A protocol can defines a set of methods that can be adopted by any class, but we can’t write code inside.On the other hand, extensions gives us the power to write code inside methods, but it can only used for one type.

May 01, 2020 . 1 min read     Swift

Read More »