diff --git a/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringBuilder.swift b/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringBuilder.swift index b5515a89d..d5a6103c0 100644 --- a/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringBuilder.swift +++ b/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringBuilder.swift @@ -35,9 +35,6 @@ struct AttributedStringBuilder { /// Allows to alter font with the specified symbolic traits. var fontSymbolicTraits: UIFontDescriptor.SymbolicTraits = [] - /// The text lists that contain text. - var textLists: [NSTextList] = [] - /// The text tab objects that represent the paragraph’s tab stops. var tabStops: [NSTextTab] = [] @@ -83,7 +80,6 @@ struct AttributedStringBuilder { paragraphStyle.paragraphSpacing = typography.paragraphSpacing paragraphStyle.alignment = alignment paragraphStyle.lineBreakMode = lineBreakMode - paragraphStyle.textLists = textLists paragraphStyle.tabStops = tabStops paragraphStyle.headIndent = headIndent attributes[.paragraphStyle] = paragraphStyle diff --git a/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringMarkdownVisitor.swift b/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringMarkdownVisitor.swift index b1537069e..2b245bb1a 100644 --- a/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringMarkdownVisitor.swift +++ b/Sources/ProcessOut/Sources/UI/Shared/DesignSystem/Typography/AttributedStringMarkdownVisitor.swift @@ -36,10 +36,9 @@ final class AttributedStringMarkdownVisitor: MarkdownVisitor { func visit(list: MarkdownList) -> NSAttributedString { var builder = self.builder let textList = textList(list) - builder.textLists.append(textList) builder.tabStops += listTabStops(textList, itemsCount: list.children.count) if let tabStop = builder.tabStops.last { - builder.headIndent += tabStop.location + builder.headIndent = tabStop.location } let itemsSeparator = NSAttributedString(string: Constants.paragraphSeparator) let attributedString = list.children