cjwirth / RichEditorView

RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing.
BSD 3-Clause "New" or "Revised" License
1.89k stars 445 forks source link

help for dark mode #253

Closed BlackGold-1989 closed 3 years ago

BlackGold-1989 commented 3 years ago

How to change RichEditorView background color and text color in darkmode?? There are functions name setEditorBackgroundColor, setEditorFontColor... but does not work.. I need help...

BlackGold-1989 commented 3 years ago

I found a solution for this...

sagarpathak57 commented 3 years ago

@BlackGold-1989 what was the solution?

BlackGold-1989 commented 3 years ago

this is loading web view in pod file, so we set style (css for body). @media (prefers-color-scheme: light), @media (prefers-color-scheme: dark) which is same when we set theme in web development. That's all.