Airprint is a technology developed by Apple which wirelessly prints documents when connected with an iOS device.
Add this code block in your IB action and run the application.
This tutorial is made with Xcode 9 and built for iOS 11.
In this tutorial, a PDF from a url will be printed by using Airprint.
1. Create a Single View Application on Xcode and open it.
2. Create a Print button and add an action.