I was looking for something similar for Swift, but I did not find anything. After trying several times, reading some blog posts and documentation, I was able to do it myself. Here is my blog post explaining and here is the full working code . It is also a universal project that uses Adaptive segues and works well for both iPhone and iPad.
source share