Edit

Share via


UITraitCollection.Contains(UITraitCollection) Method

Definition

Probes whether this UITraitCollection contains all the traits specified.

[Foundation.Export("containsTraitsInCollection:")]
public virtual bool Contains (UIKit.UITraitCollection trait);
abstract member Contains : UIKit.UITraitCollection -> bool
override this.Contains : UIKit.UITraitCollection -> bool

Parameters

trait
UITraitCollection

Traits to probe for.

Returns

True if all the traits in the traits parameter are present, false otherwise.

Attributes

Applies to