SWIFT

Property Observers in swift

Property observers in swift are somewhat like any other observers available in iOS SDK. In iOS app development, observers are the objects that notify user on a particular event. With property observers, a block of code gets called when property values changes. Property observers provides developer a handy way to monitor changes to the property.

Property Observers in swift Read More »

Create custom UIView class with xib in swift

Step-by-Step Guide to Design Custom UIView with XIB in Swift for UI Flexibility

Need to create a re-usable UIView class for common screens in your app, but want to design user interface in xib. To achieve this you need to create a xib file for your custom UIView class. Since xcode, does not allow developers to create a xib file, while creating a new file having UIView as

Step-by-Step Guide to Design Custom UIView with XIB in Swift for UI Flexibility Read More »

Get number of days between two dates in iOS using 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 iOS using 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 »

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 »