<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WASubscribableService/allServices",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware21WASubscribableServiceV11allServicesSDySSACGvpZ"
  },
  "title" : "allServices"
}
-->

# allServices

A dictionary of all subscribable services declared by your app, indexed by service name.

```
static var allServices: [WASubscribableService.ID : WASubscribableService] { get }
```

## Discussion

The system populates the contents of this property from the values under the `Info.plist` key `WiFiAwareServices`,  with all entries that specify the `Subscribable` configuration included.

You can select a service from this property using the `serviceName` as the key to pull elements from the dictionary, or by using an extension as follows:

```swift
// Index into the dictionary.
let myService = WASubscribableService.allServices["_example-service._tcp"]!

// Give the service a symbol name.
extension WASubscribableService {
	public static var exampleService : WASubscribableService {
		allServices["_example-service._tcp"]!
	}
}
let myService = .exampleService
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)