Higher Order Functions in Swift
Aug 12, 2020 4 min read
forEach, map, CompactMap, flatMap, filter, reduce, sort, and sorted
A higher-order function is a function that takes one or more functions as arguments or returns a function as its result. Here are some swift higher-order functions — forEach, map, CompactMap, flatMap, filter, reduce, sort, and sorted.
Jul 26, 2020 3 min read
Class and struct are the roots of your iOS development, and it’s important to know the difference between them.
A simple difference between class and struct is: a struct(structure) is a value type and class is a reference type. What is it?
Jul 6, 2020 2 min read
Singleton is a Creational Design pattern
It’s a commonly used design pattern and very easy to implement in a project. In simple words, we can define singleton as — The singleton pattern allows a class to have only one instance, every reference of this class will point to the same instance.
Dispatch Groups and Semaphores
Jun 20, 2020 3 min read
Concurrency with dispatch groups and semaphores
Sometimes you need to execute multiple tasks at the same time but it doesn’t matter which task is finishing first, you just want to know when all tasks are finish. For this scenario, we can use DispatchGroup.
Jun 9, 2020 5 min read
What is Concurrency?
If more than one task is happening at the same time then it’s called concurrency. Since 2011 all iPhone supports multiple tasks to execute at the same time. We can run multiple tasks at the same time by adding some code.
Custom Push Notifications in iOS — Swift 5
Jun 2, 2020 5 min read
Full implementation of notification
Notifications are an important part of any app for user engagement and in this article, we will explore push notification setup in a simple way.