I think the problem with providing proper id's to view can be solved by writing an extension over UIView and adding @IBInspectable property to UIView using associated type. Though it would work like a tag with string type instead of int. You can do that if it helps! :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.