Play video in swift using AVPlayerViewController

Playing a video in swift is not a very complex task, thanks to frameworks provide by apple. AVKit framework provides a high level interface for developer to play video in swift language. AVPlayerViewController’s player is capable of playing video, either from stored locally or from a remote URL. Steps to play video in swift using …

Play video in swift using 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. Learn about closures in swift from given below link https://iostutorialjunction.com/2018/04/how-to-write-closures-in-swift-beginner-tutorial.html Closures types There are two type of closures Escaping closures Non-escaping closures What …

Difference between escaping and non escaping closures Read More »

Get array of time interval slots between two dates

In this post we will learn, how to get array of slots for a particular interval of date time. For this post, we are using swift and will get array of time slots, between two date and time. Code for getting array of time interval Understanding parameters of function getMinutesTimeSlotsBetween startDateTime: accepts a date object.endDateTime: …

Get array of time interval slots between two dates Read More »

How to create UITableView with sections

Introduction to UITableView with sections In this tutorial, we will create UITableView with sections. Or in other words a grouped UITableView. Sections in UITableView are commonly used in cases where, we group items. In this tutorial, we will create sections in UITableView according to following condition Developers grouped according to their job role. Example iOS …

How to create UITableView with sections Read More »

Get number of days between two dates in swift

Want to calculate number of days between two dates in swift, or difference of days between two dates in swift. If you are looking for objective C tutorial for getting number of days between two dates in Objective C, then check given below link https://iostutorialjunction.com/2016/01/calculate-number-of-days-between-two-dates.html Getting number of days between two dates Below is the …

Get number of days between two dates in swift Read More »