QR code extraction

Hey could someone please help me with problem I am having?

I am making an app that should read QR code and then pass the result string in different file. And I just cant extract the results String value to different file.

In the code the constance ‘outputString’ as you noticed is actually the final result and readable String

Im gonna add the final function where the scanner actually understands QR code.
I would be nice if someone could help.

There is a project that Paul Hudson created in SwiftUI that scanned QR codes. Maybe there is something in that you might find useful.
https://www.hackingwithswift.com/100/swiftui/79

Solved problem, if some one have the same issue just add a segue function.