实现文本'centerY'方向居中对齐
atributedString.addAttribute(.baselineOffset,
value: ((font.lineHeight - font1.lineHeight) / 2)
+ (font.descender - font1.descender) / 2,
range: range)
网友评论