Skip to content

Commit

Permalink
Merge pull request #41 from codaman/main
Browse files Browse the repository at this point in the history
Fix foreground color problem
  • Loading branch information
danielsaidi authored Apr 2, 2023
2 parents 9ad437d + 683d75a commit 6166c4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Sources/RichTextKit/RichTextView_AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ open class RichTextView: NSTextView, RichTextViewComponent {
backgroundColor = .clear
imageConfiguration = standardImageConfiguration(for: format)
layoutManager?.defaultAttachmentScaling = NSImageScaling.scaleProportionallyDown
textColor = .textColor
setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/RichTextKit/RichTextView_UIKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ open class RichTextView: UITextView, RichTextViewComponent {
text.autosizeImageAttachments(maxSize: imageAttachmentMaxSize)
richTextDataFormat = format
spellCheckingType = .no
textColor = .label
//textColor = .label
setContentCompressionResistancePriority(.defaultLow, for: .horizontal)
}

Expand Down

0 comments on commit 6166c4c

Please sign in to comment.