I am a new developer. How can i make my output text editable?

I have made a Scan to Text app with the help of sources from the internet, but I can’t figure out a way to get my output text to be editable. Here’s my code


private func makeScannerView()-> ScannerView {

        ScannerView(completion: {

            textPerPage in

            if let outputText = textPerPage?.joined(separator: "\n").trimmingCharacters(in: .whitespacesAndNewlines){

                let newScanData = ScanData(content: outputText)

                self.texts.append(newScanData)

            }

            self.showScannerSheet = false

            

        })

    }





I am a new developer. How can i make my output text editable?
 
 
Q