---
title: local()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hkdevice/local()
---

# local()

returns a device object that represents the current device.

## Declaration

```swift
class func local() -> HKDevice
```

## Return Value

Return Value A device object representing the hardware (iPhone, iPod Touch, or Apple Watch) that is running the app.

## See Also

### Creating Device Objects

- [init(name:manufacturer:model:hardwareVersion:firmwareVersion:softwareVersion:localIdentifier:udiDeviceIdentifier:)](healthkit/hkdevice/init(name:manufacturer:model:hardwareversion:firmwareversion:softwareversion:localidentifier:udideviceidentifier:)-3663q.md)
