Aman Aggarwal

UITapGetureRecognizer in IOS

UITapGesturRecognizer, what is that. 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 In this post, we will cover UITapGestureRecognizer and learn how to use it in our iOS app.Apart from UITapGestureRecognizer we have UIPanGestureRecognizer and UIrotationGestureRecognizer. Let

UITapGetureRecognizer in IOS 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 »