Author Topic: How to Use Xcode 7's New "Generated Interface" Feature  (Read 6676 times)


  • Administrator
  • *****
  • Posts: 719
    • View Profile
How to Use Xcode 7's New "Generated Interface" Feature
« on: November 12, 2015, 10:25:33 AM »
Although Swift doesn't have header files as does Objective-C, Xcode 7 provides a "Generated Interface" feature that allows you to view a virtual header file for a class. This is convenient for viewing all the exposed properties and methods of a class.

To access this option, open a code file in Xcode, then in the Code Editor's jump bar, click the "Related Files" button (the button on the far left that contains four small squares) and then select Generated Interface from the popup menu:

This generates a virtual header file containing all exposed properties and methods:

All the best!
Kevin McNeish
Author of Learn to Code in Swift:
Check out our Robot Tic-Tac-Toe app:
« Last Edit: November 12, 2015, 10:30:57 AM by kjmcneish »