Swift

  • How to Add a button on the navigation bar in Swift 5

    How to Add a button on the navigation bar in Swift 5

    Navigation Bar is the most common component in the iOS Apps, it allows us to navigate the application. As we all know there is NO back button on the iPhones. So navigation bar allows us to move back from any controller by giving the back the button option by default. Add Button on Navigation Bar […]

  • Create Singleton class in Swift 5 in 2022

    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

    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

    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

    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

    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

    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

    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

    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

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

  • How to Create Drop-Down List/Menu in Swift

    How to Create Drop-Down List/Menu in Swift

    iOS is very rich in UI elements, but when it comes to the Drop-Down list/menu there is no support for it. Drop-Down is using in almost all kinds of apps and these Drop-Down are of different kinds with different apps. In apps, drop-down shows the list of elements, simple labels, switch, or any other design […]

  • Create UITableView Programmatically in Swift

    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

    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

    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)

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

  • How to Create UITableView with sections in Swift 5

    How to Create UITableView with sections in Swift 5

    Whenever we have to show the multiple items on the list, the first thing that comes to mind is UITableView. UITableView is the essential UI component in iOS Application Development. UITableView with sections allows us to separate the list into different categories, so the list looks more organized and readable. We can customize sections as […]

  • Create Pulsing Animation in Swift

    Create Pulsing Animation in Swift

    Animations in the applications are the key elements to hold the user and also enhances the user experience which lets the user use the application more. In this tutorial, we will learn how to create pulsing animation in swift when the user taps on UIButton. When the user taps on the button it will show […]

  • Create a Slide-Up Menu in Swift

    Create a Slide-Up Menu in Swift

    Showing views with some animation is very common in iOS applications and people love these animations. Animations enhance the user experience and that hold the user in the application. In this tutorial, we will learn how to create a slide-up menu in swift programmatically. We will see how to manage the animations and maintain the […]

  • Adding Search to TableView in Swift

    Adding Search to TableView in Swift

    Searching is a very common feature in any application, Adding search to tableView in swift, allows us to search in the list of elements that are presenting on table view and it is very easy to implement. The search is case insensitive means you can search with capital or small letter it will find all […]

  • Add CollectionView inside TableView

    Add CollectionView inside TableView

    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 inside tableView is not a complex functionality but managing actions and data is a little tricky. This kind of functionality […]