Fix dismiss keyboard icon in custom theme with default appearance in dark mode
@@ -56,11 +56,19 @@ class EditorSplitViewController: SplitViewController {
path.addLine(to: CGPoint(x: 11, y: 17))
path.addLine(to: CGPoint(x: 22, y: 7))
+ if #available(iOS 13.0, *) {
+ if UITraitCollection.current.userInterfaceStyle == .dark {
+ UIColor.white.setStroke()
+ } else {
+ UIColor.black.setStroke()
+ }
+ } else {
if ConsoleViewController.choosenTheme.keyboardAppearance == .dark {
UIColor.white.setStroke()
} else {
UIColor.black.setStroke()
}
+ }
path.lineWidth = 2
path.stroke()
