init(transferable:in:)
Extract an attributed string from SwiftUI’s transferable representation in a certain environment.
Declaration
init(transferable: AttributedTextFormatting.Transferable, in environment: EnvironmentValues) throwsDiscussion
Use this initializer with a AttributedTextFormatting/Transferable that was imported, e.g. in the action closure of the View/dropDestination(for:action:isTargeted) modifier.