I have a subclass of UILabel with a property lineSpacing
setup like so:
var lineSpacing = CGFloat(20.0)
When I have this here it pushes up the text, even though it isn't used for anything, I removed all the code except for that property:
class CustomLabel : UILabel {
var lineSpacing = CGFloat(20.0)
}
and it is still pushed up, I changed the name of the property and it fixed it, I was just wondering where this is coming from as I can't access lineSpacing
from a UILabel
regularLabel.lineSpacing
gives an error.