Does UIScreen work with mac catalyst?

In the documentation, UIScreen supports Mac Catalyst https://developer.apple.com/documentation/uikit/uiscreen/

but when I actually do UIScreen.screens with mac catalyst, I only get the main screen and cannot detect the external display.

import SwiftUI

struct ContentView: View {
   
  @EnvironmentObject var externalDisplayContent: ExternalDisplayContent
   
  var body: some View {
    VStack {
      Button("Display"){
        print(UIScreen.screens)
      }
    }
  }
   
}

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

When app launches it has only 1 screen detected, when it moves to another display this additional one is added to the screens array.

Does UIScreen work with mac catalyst?
 
 
Q