Closed bermanapps closed 6 years ago
Like this: (for swift 4) countingLabel.textAlignment = .center
@bermanapps
If you use attributedFormatBlock
you can set:
let style = NSMutableParagraphStyle()
style.alignment = .center
...
let attributedText = NSMutableAttributedString (
string: "xxxxxx", attributes: [
NSAttributedStringKey.paragraphStyle: style
]
)
else just set countingLabel.textAlignment = .center
of EFCountingLabel
.
How do I center the text in the view? Thanks