Animate UIProgressView backward

There are situations where we need to use the UIProgressView as a count-down bar. We want to count it from 1 to 0. There are two ways in which this can be achieved. Flipping the UIProgressView This is the old solution that can be used if you are supporting below iOS 9.0. In this method, … Read more

Xcode doesn’t support ios 14.6

It is always a good idea to turn off the auto-update for development devices. But since your device is at a higher version now and Xcode is not recognizing it, you need to add support for it. There are two solutions Download latest Xcode Add device support files to your existing Xcode Since the first … Read more

Errno::ENOENT – No such file or directory

While doing pod install many of us have come across this issue. There are few standard approaches towards dealing with this 1. pod update In some cases following steps could help Delete Podfile.lock Run pod update instead of pod install Pod update will update all the pods to latest version while respecting the Podfile version … Read more

The proper way to use the node.js PostgreSQL module

In order to work with Postgres and node, Pg is the way to go. First, you need to install the pg module by running npm i pg. After that create a folder in your project and for now, let it name db. Inside that folder create an index.js file and add the given code to it. … Read more

AVPlayerViewController as subview

We understand that AVPlayerViewController is a ViewController and like all view controllers, it takes full view when it’s either pushed or presented. But it can also be rendered as a subview with a custom frame by adding it as a child viewcontroller. The approach is pretty straightforward. The code given below plays a video from … Read more

Embed YouTube video in WKWebView

Get the youtube video URL Add WKWebView to your UIView using code. Somehow it works better when added through code. Your resulting code will look like this 3. Now create a request with your youtube URL and add ?playsinline=1 this will play video inline. The resulting code will look like this To get the best … Read more