diff --git a/Sources/RichTextKit/RichTextEditor.swift b/Sources/RichTextKit/RichTextEditor.swift index f91b23e1b..344507949 100644 --- a/Sources/RichTextKit/RichTextEditor.swift +++ b/Sources/RichTextKit/RichTextEditor.swift @@ -97,7 +97,8 @@ public struct RichTextEditor: ViewRepresentable { public let scrollView = RichTextView.scrollableTextView() public var textView: RichTextView { - scrollView.documentView as? RichTextView ?? RichTextView() + scrollView.hasVerticalScroller = config.isScrollingEnabled + return scrollView.documentView as? RichTextView ?? RichTextView() } #endif