diff --git a/Note/FormatLogViewController.swift b/Note/FormatLogViewController.swift index d9f000d..ff480b0 100644 --- a/Note/FormatLogViewController.swift +++ b/Note/FormatLogViewController.swift @@ -34,7 +34,9 @@ class FormatLogViewController: UIViewController { textView = UITextView() textView.translatesAutoresizingMaskIntoConstraints = false textView.font = UIFont.systemFont(ofSize: 16) - textView.backgroundColor = .systemBackground + textView.backgroundColor = UIColor { traitCollection in + traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white + } textView.layer.cornerRadius = 12 textView.layer.borderWidth = 0.5 textView.layer.borderColor = UIColor.separator.cgColor diff --git a/Note/FormatNoteViewController.swift b/Note/FormatNoteViewController.swift index debf38a..a5cebf5 100644 --- a/Note/FormatNoteViewController.swift +++ b/Note/FormatNoteViewController.swift @@ -34,7 +34,9 @@ class FormatNoteViewController: UIViewController { private func setupUI() { textView = UITextView() textView.translatesAutoresizingMaskIntoConstraints = false - textView.backgroundColor = .systemBackground + textView.backgroundColor = UIColor { traitCollection in + traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white + } textView.layer.cornerRadius = 12 textView.layer.borderWidth = 0.5 textView.layer.borderColor = UIColor.separator.cgColor