Two versions of ViewController?

Hello,


I am working my way through the Apple tutorial, Food Tracker.

https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/ConnectTheUIToCode.html#//apple_ref/doc/uid/TP40015214-CH22-SW1


I ran into an error while attempting to create Outlets. i.e. the app would no longer run in the simulator

It was easy enough to delete the elements on the interface and start over.


I am trying to take my time, do every step just as instructed, etc. I am confused by one view I stumble across. It appears like there are two different versions of ViewController. On the left-hand selecting ViewController.swift from the navigator, I see


//
//
//
//
//
//
//
import UIKit
class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        
    }
}


When I select the Assistant Editor, on the right I see


//
//
//
//
//
//
// 
import UIKit
internal class ViewController : UIViewController {
    override internal func viewDidLoad()
    override internal func didReceiveMemoryWarning()
}



Are these two different files? i.e. I am not understaning something, so I am a little confused.


Thanks.


It appears that this forum doesn't allow screen shots? I uploaded a picture of the screen shot here:

[IMG]http://i65.tinypic.com/25jfa14.png[/IMG]

or

http://tinypic.com/r/25jfa14/9

I seem to recall previous threads here talking about the FT tutorial being broken - might want to do a search, if you haven't already.


And yes, screenshots/inline images are a silent fail - you can add them all day, but others aren't allowed to see them.

Those are not two different view controllers. The assistant editor is just showing you the "header" of your file. Basically the public interface to that file. Sometimes it's nice to just see that type of view to know what is exposed to other classes in your project. You may realize that your addButtonPressed is supposed to have the private keyword but doesn't, for example.

Two versions of ViewController?
 
 
Q