---
title: default()
framework: healthkit
role: symbol
role_heading: Type Method
path: healthkit/hksource/default()
---

# default()

Returns a source object for the current app.

## Declaration

```swift
class func `default`() -> HKSource
```

## Return Value

Return Value A source object for the current app.

## Discussion

Discussion You can access the source object for the current app directly using this methods. To access other sources, use a source query or similar approach.
