Hi OOPer, I've managed to resolve this issue by using
sender.hidden = true
Thank you for your explanation as to why I was receiving the error. My apologies for using the incorrect tag.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: