Tag: swift

June 14, 2020

Design a simple dice roll app in ios swift

A simple dice roll app tutorial designed for beginners Overview If you are a beginner in iOS app development then you can learn many things just by designing a simple app only. Slowly you can move ahead with some advance design. In this tutorial, you be learning many new basic concepts like how to use image view, button, and simple animation in ios swift. Just […]

May 18, 2020

Introduction to UserDefaults in swift

Basics about UserDefaults in Swift iOS. Introduction to UserDefaults in Swift Why UserDefaults in swift? You are developing an iOS mobile application and you want to store some data like a bool value ( isUserLoggedIn ) to represent if the current user is logged in or logged out then how will you do this? For this type of purpose, apple provides us UserDefaults. It is […]

April 30, 2020

Value type and Reference type in iOS swift.

Difference between value type and reference type. If you are an iOS developer and still confused about the difference between value type and reference type then you are at the right place because I am going to explain each and every topic in every detail. so let’s get started. As we know that whenever we create an instance it gets saved to memory. A fixed […]

April 24, 2020

How to design custom switch in iOS swift?

Design custom UISwitch like the android from scratch in iOS swift. We are going to copy the design of the android toggle button and design custom switch. It seems a lot of effort but believes me, my friends, I have made it very easy for you. Let’s start some coding now. I will start with a basic class definition of the custom switch and named […]

April 23, 2020

Asynchronously display data from API call in iOS

Learn how to make API call in iOS. Display the returned data asynchronously in iOS swift In this tutorial we will be using a dummy API to make API call in iOS ie. https://jsonplaceholder.typicode.com/todos/1 And the response will be coming in JSON as shown below format: Let’s start some coding now. First we will be creating the model class based on the above JSON array. […]

April 22, 2020

Get JSON array from the server and parse it in your ios application.

Learn how to parse a JSON array with the model class. In this small tutorial, I will show you how to get JSON array and parse the respective data in your iOS app. Let’s get started. For the demo, I will be using this link for the JSON array. “https://jsonplaceholder.typicode.com/posts” This JSON contains the array of post data. So let’s create our model PostModel.swift as […]