Contents

hasTag(_:)

Returns true if the container values contain a tag matching a given value.

Declaration

func hasTag<V>(_ tag: V) -> Bool where V : Hashable

Parameters

  • tag:

    The tag value to check for.

Return Value

If the container values has a tag matching the given value.

Discussion

Tag values are set using the View/tag modifier.