Contents

dataDetection(_:options:)

Asynchronously detects data in the view’s content and styles them to indicate they are clickable.

Declaration

nonisolated func dataDetection(_ types: DataDetector.MatchType = .all, options: DataDetector.Options = .init()) -> some View

Parameters

  • types:

    The data detector match types

  • options:

    Data detector options

Return Value

A view with modified text attributes when matches are detected