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 »

UITapGetureRecognizer, UIPanGestureRecognizer, UIRotationGestureRecognizer in IOS – Part 1

You touch screen of your smartphones, in technical terms it is known as gesture. There are different types of gesture API’s available to IOS developers UITapGetureRecognizer UIPanGestureRecognizer UIRotationGestureRecognizer In this post, we will cover UITapGestureRecognizer from above listed API’s and rest of the two will be covered in next article/post. Let us briefly understand when …

UITapGetureRecognizer, UIPanGestureRecognizer, UIRotationGestureRecognizer in IOS – Part 1 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 »

Learn about closures and how to write closures in swift

  What are closures? As per apple documentation, closures are self contained blocks of  functionality that can be passed around code. In swift these are similar to what we called blocks in objective c and lambda in other languages. The definition is quiet complex to understand, so in simple words we can define closure as …

Learn about closures and how to write closures in swift Read More »

Set placeholder to UITextView in swift

    Introduction to tutorial – set placeholder to UITextView: Placeholder is a property associated with input UI components that works as a hint to the user in mobile app development. UITextField has placeholder property but there is no property for setting placeholder to UITextView in swift. So for adding placeholder to UITextView , we …

Set placeholder to UITextView in swift Read More »

Draw route on iOS map using MKDirections in swift

Introduction to draw route on iOS map (MapKit) using MKDirections in swift4 In this tutorial, we are going to learn how to to draw route on MapKit (apple map) between two locations using swift language. We will use MKAnnotation’s to draw pins for source and destination. For getting route, we will use MKDirection class and …

Draw route on iOS map using MKDirections in swift Read More »

Get user current location in swift

Introduction to the post get user location in swift4 using CLLocationManager In this tutorial, we will learn how to get user current location in swift. For getting user location, we will use Corelocation framework for location updates and Mapkit framework to show user current position on map. We wil use apple default map not Google …

Get user current location in swift Read More »

Convert pdf & images to base64 string swift 4

Introduction to convert PDF and images to base64 string While developing iOS apps and if there is a need of uploading image, documents like PDF, excel doc, word doc to server(central database for our app) either we prefer byte data to be uploaded or API requires to upload documents(images, PDF,  excel, word documents) in base64 …

Convert pdf & images to base64 string swift 4 Read More »