Skip to content

Commit

Permalink
Use systemBackground instead of clear in MarkupWKWebView
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengharris committed Oct 6, 2023
1 parent c62befa commit d3a7bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MarkupEditor/MarkupWKWebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public class MarkupWKWebView: WKWebView, ObservableObject {
/// which in turn loads the css and js scripts itself. The markup.html defines the "editor" element, which
/// is later populated with html.
private func initForEditing() {
isOpaque = false // Eliminate flash in dark mode
backgroundColor = .clear // Eliminate flash in dark mode
isOpaque = false // Eliminate flash in dark mode
backgroundColor = .systemBackground // Eliminate flash in dark mode
initRootFiles()
markupDelegate?.markupSetup(self)
// Enable drop interaction
Expand Down

0 comments on commit d3a7bca

Please sign in to comment.