Returns a new option set with only the elements contained in both this set and the given set.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
An option set.
A new option set with only the elements contained in both this set and
This example uses the
intersection(_:) method to limit the available shipping options to what can be used with a PO Box destination.