I have subclassed TabBar to create a custom tab bar. I am able to offset the title position but not the image/icon position.
self.items?.forEach({ $0.titlePositionAdjustment = UIOffset(horizontal: 0.0, vertical: -5.0) }) //works
self.items?.forEach({ $0.imageInsets = UIEdgeInsets(top: -10, left: 0, bottom: 0, right: 0) }) //does not work
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…