<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "EnergyKit",
  "identifier" : "/documentation/EnergyKit/ElectricVehicleLoadEvent/ElectricalMeasurement/PerformanceMetrics-swift.struct/init(estimatedRange:batteryTemperature:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "EnergyKit"
    ],
    "preciseIdentifier" : "s:9EnergyKit24ElectricVehicleLoadEventV21ElectricalMeasurementV18PerformanceMetricsV14estimatedRange18batteryTemperatureAG10Foundation0H0VySo12NSUnitLengthCGSg_ALySo0pN0CGSgtcfc"
  },
  "title" : "init(estimatedRange:batteryTemperature:)"
}
-->

# init(estimatedRange:batteryTemperature:)

Creates performance metrics for the current measurement.

```
init(estimatedRange: Measurement<UnitLength>? = nil, batteryTemperature: Measurement<UnitTemperature>? = nil)
```

## Parameters

`estimatedRange`

The estimated range of driving distance based on the current energy state, or `nil` if an estimate is unavailable.

`batteryTemperature`

The battery pack temperature, or `nil` if the temperature is unavailable.

---

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)