-
Create Singleton class in Swift 5 in 2022
Singleton class in swift is a very useful and popular design pattern in development. Most of the developers are using this design pattern. This is very simple, common, and easy to use in your project. Singleton class helps you to share the same instance of variable in the complete application. It initializes your class instance single time […]
-
How to make UIView Clickable in Swift
UIView is the core element in swift, we always use UIView if we want to create something unique like a custom design, a custom button. It is an object which used to manage the rectangle shape on the screen. But we have one limitation with the UIView, we can not get action for the UIView. […]
-
Quiz App in Swift
Creating an application in iOS is very easy, we only need to understand the basic concept and data flow between the screens. In this article, we are going to learn how we can create a QUIZ APP in swift and we are going to learn various new concepts while learning. We will cover: MVVM architecture […]
-
MVVM in Swift
Model View View Model architecture pattern is the advanced version of MVC architecture pattern. MVVM architecture pattern allows us to make the project structural and easy to maintain. The files in the project are managed in their respective folders or places. So it is easy for any developer to find the files and maintain them. […]
-
Adding UICollectionView to UITableView Cell in Swift 5
Having a collection view inside table view has become a very common design pattern. Many of the applications are already using this kind of pattern in their apps like Spotify, App store, etc. Adding collectionView to tableView is not a complex functionality but managing actions and data is a little tricky. This kind of functionality […]
-
Adding Support of Dark Mode in iOS App in Swift
With iOS 13.0 a new feature has introduces called Dark Mode. It allows adding a dark theme to iOS and the same for your app. It’s a great addition to give to users, so they can experience your app in the dark design. In Dark Mode, user can select their interface style as dark or […]
-
Adding Shadow with Rounding Corner in Swift 5
Corner radius and shadow is the needed design in the all the application. Defining corner radius or shadow separately is very easy in iOS, but adding shadow with rounding corner on same view is bit challenging. If we define both on the same view with common approach, only corner radius will show up. In this […]
-
Pass data from TableView Cell to Another Controller
In iOS, When we are working on creating an apps, we have multiple view controllers sometimes, we need to pass the data from one controller to another controller OR from tableView cell to another controller, by using properties we can easily send the data from tableView cell to another controller according to our requirement. In […]
-
Model View Controller in Swift
Model View Controller in Swift is very common architecture pattern in iOS mobile application development. MVC architecture pattern allow us to make the project structural and easy to maintain. All the files in the project are manage in their respective folders or places, so it is easy for any developer to find the files and […]
-
Create UITableView Programmatically in Swift
UITableView is a basic UI element in iOS App. We can design a table view on the storyboard with its custom cells or XIB. But sometimes we need to create it at run time without a storyboard so we can assign specific frames and bounds to it. Creating UITableView programmatically in swift is a little […]
-
Pinch to Zoom image In/Out Programmatically
Viewing images closely by pinch to zoom them is very common in any iOS app. ImageView is used to show the images but unfortunately, ImageView doesn’t come up with this functionality. So we need to programmatically create a pinch to zoom image In/out functionality. In this tutorial, we will see how we can zoom the […]
-
Add and Delete cells from TableView in Swift 5
In this tutorial, we are going to talk about, how we can Add or Delete cells from TableView in swift. Adding and Deleting cells are very common in day-to-day development tasks. We need to add the cell to display the information and delete it to remove it. Here’s is the video if you prefer video […]
-
Custom Alert View Swift 4 (Xcode 11.1)
Alerts are a very common way to display the message to the users. Alerts show information to the user which is important and the user must take an action on that. Like we have to delete the item from the list, or the user wants to log out. We will show the confirmation dialog to […]