Skip to content

Commit ccf2d7b

Browse files
committed
Docs, Make attachments a constant
1 parent f8e3fa5 commit ccf2d7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/CodeEditTextView/TextLayoutManager/TextLayoutManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class TextLayoutManager: NSObject {
6464
}
6565
}
6666

67-
public var attachments: TextAttachmentManager = TextAttachmentManager()
67+
public let attachments: TextAttachmentManager = TextAttachmentManager()
6868

6969
// MARK: - Internal
7070

Sources/CodeEditTextView/TextLine/Typesetter/TypesetContext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct TypesetContext {
4040
fragmentContext.height = fragmentContext.height == 0 ? maxHeight : fragmentContext.height
4141
currentPosition += attachment.range.length
4242
}
43-
43+
4444
/// Appends a text range to the current ``fragmentContext``
4545
/// - Parameters:
4646
/// - typesettingRange: The range relative to the typesetter for the current fragment context.

0 commit comments

Comments
 (0)