<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WirelessInsights",
  "identifier" : "/documentation/WirelessInsights/ServicePredictionProvider/servicePredictions",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WirelessInsights"
    ],
    "preciseIdentifier" : "s:16WirelessInsights25ServicePredictionProviderC18servicePredictionsSci_pSayAA0cD0VG7ElementSciRts_s5Error_p7FailureSciRtsXPvp"
  },
  "title" : "servicePredictions"
}
-->

# servicePredictions

An asychronous sequence of current predictions.

```
final var servicePredictions: any AsyncSequence<[ServicePrediction], any Error> { get }
```

## Discussion

To act on predictions about wireless service changes, use a `for`-`await`-`in` loop to iterate over events produced by this sequence as conditions change.
Each update provides either an array of [`ServicePrediction`](/documentation/WirelessInsights/ServicePrediction) instances representing the current set of predictions or throws a [`ServicePredictionError`](/documentation/WirelessInsights/ServicePredictionError).
Only act on the most recent array of predictions received from the sequence.

> Note: The framework requires that your app have the `com.apple.developer.wireless-insights.service-predictions` entitlement in order to access predictions.

---

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)