As you can see on the image above, these two svg images are losing their quality a bit. In Assets's Attributes inscpector, their Scale property is set to Single Scale.
Those are button's imageViews, resized to fill the button:
button.setImage(UIImage(named: img1.rawValue), for: .normal)
button.contentHorizontalAlignment = .fill
button.contentVerticalAlignment = .fill
button.imageView?.contentMode = .scaleAspectFit
