How to get the list of all the printer connected to ios device programmatically?

I want to print documents using UIPrintIntrectionController() and need to pass one of the available printer but i have to pass the printer programmatically instead of hardcoding the details of printer

i tried using NetServiceBrower() but it is depreceted and resources are not available about it

`let printController = UIPrintInteractionController.shared

    let printInfo = UIPrintInfo(dictionary: nil)
    
    printInfo.jobName = "printing"
    
    printInfo.outputType = UIPrintInfo.OutputType.general
    
    printController.printInfo = printInfo
    
    let str = "hello"
    
    let dataStr: Data = Data(str.utf8)

    let data = NSData(data: dataStr)
    
    printController.printingItem = data
    
    
    //need to access a  printer to pass to printerController
    let printer = ??

    printController.print(to: printer)
How to get the list of all the printer connected to ios device programmatically?
 
 
Q