How to create gradient color using CAGradientLayer

CAGradientLayer class define under QuartzCore framework  and inherits from CALayer. In order to apply gradient color you only need to write just four lines of code that’s all. let gradientLayer… Read more »

UIActivityViewController tutorial by Example Swift

UIActivityViewController class is define under UIKit framework and inherits from UIViewController. This class makes sharing feature super easy. Using UIActivityViewController class we can post content to social media, copy content… Read more »

How to detect URLs, Addresses, Phone Numbers and Dates using NSDataDetector

Using NSDataDetector class we can detect URLs, addresses, phone numbers and dates inside any string. Using below code snippet you can detect these and also find their range respectively. The… Read more »

UITableView scroll issue on reload or during update/edit any post.

Many developers are facing this problem that whenever they reload UITableView it scrolls up, or whenever they edit the post and reload UITableView again it scrolls up. There are two… Read more »