Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit fb52a9c

Browse files
authoredDec 7, 2023
Always use black and white colors for the QR code (#1941)
Task/Issue URL: https://app.asana.com/0/1201493110486074/1205142491450702/f Description: This is to increase compatibility with Android devices.
1 parent 2bd8ca8 commit fb52a9c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎LocalPackages/SyncUI/Sources/SyncUI/Views/internal/QRCodeView.swift

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ import SwiftUI
2020
import CoreImage
2121

2222
struct QRCode: View {
23-
@Environment(\.colorScheme) var colorScheme
24-
2523
let string: String
2624
let size: CGSize
2725

@@ -58,8 +56,8 @@ struct QRCode: View {
5856
}
5957

6058
let colorParameters: [String: Any] = [
61-
"inputColor0": CIColor(color: colorScheme == .light ? NSColor.black : NSColor.white)!,
62-
"inputColor1": CIColor(color: NSColor.clear)!
59+
"inputColor0": CIColor(color: NSColor.black)!,
60+
"inputColor1": CIColor(color: NSColor.white)!
6361
]
6462
let coloredImage = outputImage.applyingFilter("CIFalseColor", parameters: colorParameters)
6563

0 commit comments

Comments
 (0)
This repository has been archived.