Category: swift

I have made swift easy for you. Learn how to make robust apps in iOS using swift. Find all the latest tech news related to swift and iOS.

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 […]

May 14, 2020

Create your own CocoaPods library.

Let’s see how to create own custom CocoaPods library and publish it. Introduction If you are an iOS developer then you may have used CocoaPods in your projects. Today I will show how you can create your own CocoaPods library and publish it to https://cocoapods.org/. This is a great opportunity to showcase some of your good work by making reusable code and publishing it on […]

May 5, 2020

How to design the floating action button in ios swift.

Create the floating action button (FAB) in your ios app. In this blog, I will guide you on basic design and animation principles in iOS. We will see the easiest way of designing the floating action button menu (FAB). Let’s start the coding part. First, create a new blank Xcode project and do the initial setup. Open the main storyboard and create four buttons at […]

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 […]