Contents

removeContentUnsupported(by:)

Removes all content not supported by the provided feature set.

Declaration

mutating func removeContentUnsupported(by featureSet: FeatureSet) -> Bool

Parameters

  • featureSet:

    The feature set to limit this markup to.

Return Value

True if this was successful and the feature set is now supported.

Discussion

If the returned value is true then self.featureSet.isSubset(of: featureSet) will be true.

See Also

Managing feature compatibility