A view that displays the status or date information of the assigned document.
`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.
```swift
VStack(alignment: .leading) {
Text("My Document")
.font(.headline)
HStack {
AssignedDocumentLabel(role: .status, documentURL: documentURL)
AssignedDocumentLabel(role: .date, documentURL: documentURL)
}
.font(.caption)
}
```
Creates a label that displays information about the assigned document.
- Parameters:
- role: The type of document information to display.
- documentURL: The URL of the assigned document.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AssignedDocumentLabel.body
This protocol needs associated types that cannot yet cross the bridge.