Monthly Archives: March 2021

AVPlayerViewController as subview

      No Comments on 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… Read more »

Embed YouTube video in WKWebView

      No Comments on 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… Read more »

How to update a UITableViewCell without reloading the full table

We have a table view setup and is working fine now suppose the data changes in the data source and you have to reflect that change in UITableView. At first, it seems that this problem can be solved easily by using tableview.reloadData(). Using reloadData works for a small tableview but… Read more »

RxSwift zip operator when one observable can fail

Recently I ran into a situation where I had to make two independent API requests and one of the API requests was discardable. I was sure that was the way to go. So i went ahead and implemented, My code looked something like this This was apparently very easy… Read more »

Notification Service Extension Not working

While implementing Notification Service you come across a situation where you have implemented all the code mentioned in the tutorial and still your is not getting called. So here I present you with checkpoints and in 99% of the cases, one of the points will work. For other 1% may… Read more »