goto
File > New > File or use shortcut key (COMMAND+N)
Enter Class Name AddCommentsViewController
Select Subclass of UIViewController
Press Next and then press create.
A new Cocoa Touch class named AddCommentsViewController is created inherit from UIViewController
solved What is inheriting in swift 4