Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configureLinkAttribute 点击后无效 #417

Open
xygkevin opened this issue May 26, 2022 · 0 comments
Open

configureLinkAttribute 点击后无效 #417

xygkevin opened this issue May 26, 2022 · 0 comments

Comments

@xygkevin
Copy link

lab.configureLinkAttribute = { type, attributes, isSelected in
var atts = attributes
switch type {
case privacyType, agreementType:
atts[NSAttributedString.Key.font] = isSelected ? kxFontMedium(12) : kxFont(12)
default:
break
}
return atts
}
isSelected == true时设置为粗体字, isSelected == false时设置为常规体,
但是点击之后就全部变成常规体了,粗体设置无效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant