So anyone else coming across this... You don't have to download an old version of XCode. Here's a better answer that works with XCode 13.
Instead of:
sender.title(for: normal)!
Change that part to this:
sender.titleLabel!.text!
Topic:
Programming Languages
SubTopic:
Swift
Tags: