Just stop using Swift. It's basically junk. You are describing one of the reasons why.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: