[SwiftUI] [UIKit] UIAccessibility.isGrayscaleEnabled doesn't work

Hello! I was in the process of creating an application in which I use information about Color Filters and more specifically Grayscale. And property UIAccessibility.isGrayscaleEnabled stopped working. I created a simple view in which I check whether the information about bold or cooler invert works. And it works. Only for grayscale it doesn't. What might be the issue here?

import SwiftUI
import UIKit
struct ContentView: View {
    var body: some View {
        VStack {
           Text("Bold: " + String(UIAccessibility.isBoldTextEnabled))
           Text("Grayscale: " + String(UIAccessibility.isGrayscaleEnabled))
           Text("Invert: " + String(UIAccessibility.isInvertColorsEnabled))
        }
        .padding()
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

I am a beginner and would appreciate any advice ☺️ Thanks!

Hello and thanks for posting! I confirmed this issue and we are tracking this internally.

In the meantime, could you tell me more about your use case for this setting specifically? Maybe there is a workaround we can come up with just to unblock your use case.

I am working on an application related to my master's thesis in the area of UX/Cognitive Science/mental health. I need information about when the subject used gray scale on their phone. So this particular functionality + notifications are necessary for the development of my application 😊

Ah, I see I'm not the only one experiencing this problem!

[SwiftUI] [UIKit] UIAccessibility.isGrayscaleEnabled doesn't work
 
 
Q