You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
Using ASTextNode, adding any value for NSUnderlineStyleAttributeName causes the lineSpacing value to be ignored in NSParagraphStyleAttributeName value objects. I have tested this using UILabel and it works correctly. Using ADK 1.9.3. Example:
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStylealloc] init];
paragraphStyle.lineSpacing = 10.0f;
NSDictionary *attributes = @{NSForegroundColorAttributeName:[UIColor blackColor],
NSFontAttributeName:[UIFont systemFontOfSize:14.0f],
NSParagraphStyleAttributeName:paragraphStyle};
NSMutableAttributedString *mutableAttributedString = [[NSMutableAttributedStringalloc] initWithString:@"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."attributes:attributes];
[mutableAttributedString addAttribute:NSUnderlineStyleAttributeNamevalue:@(NSUnderlineStyleSingle)
range:NSMakeRange(10, 10)];
self.textNode.attributedString = mutableAttributedString;