finish(translation:)
Completes the translation after which the framework closes the sheet.
Declaration
func finish(translation: AttributedString?)Parameters
- translation:
The optional translation result. If
niland the source text allows replacement, no replacement takes place. If non-niland the source text doesn’t allow replacement, framework ignores the parameter. It is recommended that providers attempt to preserve any attributes of the source text, but it is not a requirement.