I'm brand new to Swift and Xcode, so I'm hoping there's an easy fix here. I have a storyboard open and I've added in buttons and imageViews. I need to add outlets, but the way I usually do it isn't working. What I usually do is:
Open assistant editor pane which brings up ViewController.swift
Ctrl + click the object and drag to assistant editor
A blue line appears between lines of code in ViewController.swift, and I can edit details in the popover and generate the outlet automatically.
The problem is, when I open the assistant editor, it displays UIViewController.h instead of ViewController.swift. The blue line doesn't appear if I try adding an outlet there, the options under the "Automatic" button won't let me change the file, and typing out the code for the outlet and the connecting it in the storyboard isn't working, either. How do I either fix this or add an outlet another way?
Open assistant editor pane which brings up ViewController.swift
Ctrl + click the object and drag to assistant editor
A blue line appears between lines of code in ViewController.swift, and I can edit details in the popover and generate the outlet automatically.
The problem is, when I open the assistant editor, it displays UIViewController.h instead of ViewController.swift. The blue line doesn't appear if I try adding an outlet there, the options under the "Automatic" button won't let me change the file, and typing out the code for the outlet and the connecting it in the storyboard isn't working, either. How do I either fix this or add an outlet another way?