@Den Jo is your "deinit not being called" issue maybe related to this retain cycle I've faced -> https://developer.apple.com/forums/thread/790714 ?
Topic:
UI Frameworks
SubTopic:
UIKit