Add easy way to create a new UIViewController (or other object) subclass when dragging to Storyboard

Originator:armadsen
Number:rdar://42468606 Date Originated:21-Jul-2018 03:00 PM
Status:Open Resolved:
Product:Developer Tools Product Version:10.0 beta 4 (10L213o)
Classification:Feature (New) Reproducible:Always
 
Summary:
A really common workflow for me is:

1. Open a storyboard.
2. Drag a new view controller from the library.
3. Using File->New File, create a new subclass of UIViewController.
(3.5. Switch from the newly-created file back to the storyboard.)
4. Set the class of the new view controller to the new UIViewController subclass in the identity inspector.
5. Begin creating outlets and actions.

It would be cool if there were a menu item that basically automated that process. That way, you could drag a new view controller out, select the menu item (or an associated keyboard shortcut), fill in a name for the new subclass, along with any other relevant details (language, project group to put it in, etc.), and Xcode would automatically create the new source code file _and_ set the class of the view controller in the Storyboard in one step.

Steps to Reproduce:
 

Expected Results:
 

Actual Results:
 

Version:
10.0 beta 4 (10L213o)

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!