title: Printing the view in iOS with Swift
body: <p>I am developing an app which requires visitor passes to be generated and printed directly from an iPad over AirPrint.</p>
  
  <p>I have looked everywhere to find out how to print a view but I can only find how to print text, webKit and mapKit.</p>
  
  <p>Is there a way of printing an entire view? If not, what would be a good solution to print a visitor pass which will be plain text, boxes and a photograph. Thanks.</p>