SwiftUI + List + Copy

iOS app using SwiftUI with a List.

I want the user to be able to select some lines and put the content (as String or NSAttributedString) to the pasteboard.

Same functionality as comes free with UITextView.

How can this be done?