Internet connectivity in iOS – How to check

Earlier we use Reachability classes to check for internet connectivity in iOS sdk. In swift, we commonly use cocoa-pod named Reachability to monitor for network changes. With iOS 12.0, apple provide a new framework named Network framework. In Network framework, we have one class named NWPathMonitor that monitor for network connectivity in iOS sdk. In …

Internet connectivity in iOS – How to check Read More »

How to play video in swift(AVPlayerViewController)

Playing a video in swift is not a very complex task, but thanks to frameworks provide by apple. AVKit framework provides a high level player interface for developer’s to play video in swift language. AVPlayerViewController’s player is capable of playing video, either from file stored locally inside the app bundle or from a file hosted …

How to play video in swift(AVPlayerViewController) Read More »

Difference between escaping and non escaping closures

In this post we are going to learn, difference between escaping closures and non-escaping closures. Closures are self contained block of functionality that can be pass around and used in your code. If you are not familiar with closures in swift, then you can learn from given below link https://iostutorialjunction.com/2018/04/how-to-write-closures-in-swift-beginner-tutorial.html Closures types There are two …

Difference between escaping and non escaping closures Read More »