Instance Method


Returns a Boolean value that indicates whether a given element is a member of the option set.


func contains(_ member: ARView.RenderOptions) -> Bool



The element to look for in the option set.

Return Value

true if the option set contains member; otherwise, false.


This example uses the contains(_:) method to check whether next-day shipping is in the availableOptions instance.

let availableOptions =
if availableOptions.contains(.nextDay) {
    print("Next day shipping available")
// Prints "Next day shipping available"

See Also

Testing for Membership in a Render Option Set

var isEmpty: Bool

A Boolean value that indicates whether the set has no elements.