Hi James! It's always nice to have new people join the Swift community--so, welcome!
It sounds like your question is about UIKit. Unfortunately, that's not a great fit for these forums because we focus on Swift itself and not Apple's APIs. You might have better luck with your question on StackOverflow or Apple’s Developer Forums.