SwiftUI export to PDF

Hello,

I'm new here in this community and I have a question about my first app. Is there an easy way to export user inputs to PDF?
What kind of user input? Please explain a little bit more, what you want to do.
My app collects values (String, Int) from the user, calculate something and I want to export the results of the calculation as a pdf.
This has nothing to do with SwiftUI. SwiftUI renders your controls in your macOS or iOS-application. You need to think about how you present your values in a pdf. You need to create the pdf in your Swift code. For this you can choose different ways, for example you can choose a framework for that (i. e. PDFKit from Apple) or you create an HTML-file and render this to a pdf. You find a lot of stuff if you google for "Swift create PDF"
SwiftUI export to PDF
 
 
Q