UIButton title image padding not working iOS swift
Solution: // MARK: - button extension UIButton { func setTitleImagePadding ( value : CGF loat ) { if #available ( iOS 15.0, *) { var configuration = UIButton . Configuration . plain () configuration. titlePadding = value configuration. imagePadding = value configuration. contentInsets = NSDirectionalEdgeInsets ( top : value, leading : value, bottom : value, trailing : value) self . configuration = configuration } else { // Fallback on earlier versions ...