supportedFeatures
A property that returns a set of supported features, or an empty set if the current platform doesn’t support Wi-Fi Aware.
Declaration
static var supportedFeatures: Set<WACapabilities.Feature> { get }Discussion
If the host device doesn’t support Wi-Fi Aware, the system returns an empty set. If a feature is present in the set, it’s supported, which you can test by using the code below:
let isSupported = WACapabilities.supportedFeatures.contains(feature)