Skip to content

Commit a8c52e9

Browse files
committed
Don't use UIColor on macOS
1 parent 93213b4 commit a8c52e9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

DebugLayout/Sources/DebugLayout/DebugLayoutLog.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ public struct DebugLayoutLogView: View {
172172
}
173173
.padding(.vertical, 8)
174174
}
175-
.background(Color(uiColor: .secondarySystemBackground))
175+
.background {
176+
#if macOS
177+
Color(white: 0.8)
178+
#else
179+
Color(uiColor: .secondarySystemBackground)
180+
#endif
181+
}
176182
}
177183

178184
private func indentation(level: Int) -> some View {

0 commit comments

Comments
 (0)