Window Controller going fullscreen, View Controller not

I'm very new to xcode and am trying to make an application that goes fullscreen on launch and hides the menu bar and dock. Here's my ViewController.swift:

import Cocoa

class ViewController: NSViewController {

override func viewDidLoad() {
    super.viewDidLoad()
    NSCursor.hide();
}

override var representedObject: Any? {
    didSet {
    // Update the view, if already loaded.
    }
}

override func viewDidAppear() {
    let presOptions: NSApplicationPresentationOptions = [
            .hideDock                       ,
            .hideMenuBar                    ,
            .disableAppleMenu               ,
            .disableProcessSwitching        ,
            .disableSessionTermination      ,
            .disableHideApplication         ,
            .autoHideToolbar
    ]

    let optionsDictionary = [NSFullScreenModeApplicationPresentationOptions :
        NSNumber(value: presOptions.rawValue)]

    self.view.enterFullScreenMode(NSScreen.main()!, withOptions:optionsDictionary)
    self.view.wantsLayer = true

}

}

This code does what I intended it to do. However, if I put an object in the View Controller and set it to the size of the View Controller, when I run the application it will not resize the object with the window - rather, it will remain the original size in the lower left corner of the screen. How can I fix this? Thanks in advance.