---
title: AssignedDocumentLabel
framework: ClassKit UI
role: symbol
role_heading: Structure
platforms: [iOS 26.4+, iPadOS 26.4+, Mac Catalyst 26.4+, macOS 26.4+, visionOS 26.4+]
path: classkitui/assigneddocumentlabel
---

# AssignedDocumentLabel

A view that displays the status or date information of the assigned document.

## Declaration

```swift
@MainActor @preconcurrency struct AssignedDocumentLabel
```

## Overview

Overview AssignedDocumentLabel displays information about an assigned document for students, including submission status and relevant dates like due dates. The view automatically updates its appearance based on assigned document state, showing past-due items in red. VStack(alignment: .leading) {     Text("My Document")         .font(.headline)

HStack {         AssignedDocumentLabel(role: .status, documentURL: documentURL)         AssignedDocumentLabel(role: .date, documentURL: documentURL)     }     .font(.caption) }

## Topics

### Structures

- [AssignedDocumentLabel.Role](classkitui/assigneddocumentlabel/role.md)

### Initializers

- [init(role:documentURL:)](classkitui/assigneddocumentlabel/init(role:documenturl:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [View](swiftui/view.md)
