The last solution is about MacOS. I am building an iPad app. I am relatively new to the Apple development, so it is not obvious to me how to make that work for my use case. Need more help.
Post
Replies
Boosts
Views
Activity
Thanks for all the replies and the help. However, copy-paste approach suggested above is not the one I am looking for. I want to provide a button that when clicked, displays the printer selection sheet and rest of the standard process to printout.
I am also OK to convert my swiftUI view first to some kind of document(like PDF or something) which can later be printed on paper.
The app is basically a report generation tool and users should be able to printout the report from the app itself.
First, it is a View that I want to print and not just some text. It can have formatting, charts, etc. So I am not sure copy-paste will work. Secondly, It is not a great experience for the users to copy-paste and switch apps every-time.
Can you please suggest some good example apps to study?
Thank you! It is clear to me now.
Still not completely clear to me.
Lets say I click on "Family name" column, what happens next? Does the value of sortOrder variable change if I click on "Family name" column? If yes, what will be the new value? Also, how can I use custom Comparator for different columns?
Also, how does the SwiftUI know the Comparator for the other columns? How can I provide custom Comparator for different columns?
Thanks for the reply. The flow of control is still not clear to me.
What happens if I click on the “Family name” column, for example? Which line of code gets called first? Does the value of the sortOrder variable change? If yes, what will be the new value?