mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Implement line spacing on post
This commit is contained in:
parent
e884a90582
commit
2e56d62ea8
@ -139,11 +139,15 @@ final class CustomTextView: NSView {
|
||||
|
||||
layoutManager.addTextContainer(textContainer)
|
||||
|
||||
let paragraphStyle = NSMutableParagraphStyle()
|
||||
paragraphStyle.lineSpacing = 8.5
|
||||
|
||||
let textView = NSTextView(frame: .zero, textContainer: textContainer)
|
||||
textView.autoresizingMask = .width
|
||||
textView.delegate = self.delegate
|
||||
textView.drawsBackground = false
|
||||
textView.font = self.font
|
||||
textView.defaultParagraphStyle = paragraphStyle
|
||||
textView.isEditable = self.isEditable
|
||||
textView.isHorizontallyResizable = false
|
||||
textView.isVerticallyResizable = true
|
||||
|
Loading…
Reference in New Issue
Block a user