---
title: components
framework: OSLog
role: symbol
role_heading: Instance Property
platforms: [iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 10.15+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+]
path: oslog/oslogentrywithpayload/components
---

# components

The payload’s components.

## Declaration

```swift
var components: [OSLogMessageComponent] { get }
```

## Discussion

Discussion This property contains an array of OSLogMessageComponent objects from the composed message.

## See Also

### Elements of a Payload

- [category](oslog/oslogentrywithpayload/category.md)
- [formatString](oslog/oslogentrywithpayload/formatstring.md)
- [subsystem](oslog/oslogentrywithpayload/subsystem.md)
