SWIFT

Get number of days between two dates in swift

Want to calculate number of days between two dates in swift, or difference of days between two dates in swift. If you are looking for objective C tutorial for getting number of days between two dates in Objective C, then check given below link https://iostutorialjunction.com/2016/01/calculate-number-of-days-between-two-dates.html Getting number of days between two dates Below is the …

Get number of days between two dates in swift Read More »

Change UIButton size as per title text length

In this tutorial, we will learn how to alter UIButton size as per button title text length. UIButton does not increase its size, when we change tittle of UIButton dynamically or programmatically in swift. When we create a UIButton in storyboard, and set a large title to it in our ViewController class. Then the size …

Change UIButton size as per title text length Read More »

Swif tutorial – Send email with attachment in swift

Intro to tutorial on how to send email with attachment in swift  In this tutorial, we are going to learn how to send email with attachment from our iOS app which we will made using swift language. We are using xcode version 10 for this tutorial. So please follow below steps to learn how to …

Swif tutorial – Send email with attachment in swift Read More »

Create circular progress view in swift – Tutorial

Circular progress view In this tutorial, we will learn how to create our own circular progress view or bar in swift. Though, a number of open source libraries are available for the circular progress view written in swift, but this tutorial demonstrate that how you can create circular progress view of your own thus removing …

Create circular progress view in swift – Tutorial Read More »

Add custom UIRefreshControl for UITableView

Custom UIRefreshControl swift: ¬†UIRefreshControl is provided in iOS SDk that allowed user to pull UITableView in order to refresh the contents of UITableVIew. This is most common approach used in mobile apps to allow user to forcefully refresh the contents of UITableView. In this tutorial, we will learn how to create a custom refresh control …

Add custom UIRefreshControl for UITableView Read More »

Change image tint color programmatically in swift

How to change image tint color programmatically in swift In this post, we will learn how to change image color in swift. Below is the code snippet, that will change image tint color in swift language. The code is self explanatory in itself, first we will get the image as template image from the corresponding …

Change image tint color programmatically in swift Read More »