I would like to create a project in Swift 2 that does not work with storyBoards
since in Objective-C I am used to working with XIBs
.
Some time ago I was testing with Swift 1.x and I remember that to assign the VC to rootViewController
in the appDelegate
it had to first (like Objective-C)
-
create an instance of the VC:
let vc = ViewController(nibName:"ViewController", bundle:nil)
-
then assign it to
rootViewController
My problem is that when I declare the constant vc
the next warning
skips me:
Immutable value 'vc' was never used; consider replacing with '_' or removing it
Could someone give me some indication?