<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Assignables",
  "identifier" : "/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Assignables"
    ],
    "preciseIdentifier" : "s:11Assignables20AssignedWorkDocumentV15ScoreAnnotationV"
  },
  "title" : "AssignedWorkDocument.ScoreAnnotation"
}
-->

# AssignedWorkDocument.ScoreAnnotation

A score mark on page of the work document.

```
struct ScoreAnnotation
```

## Topics

### Creating a score annotation

[`init(id: AssignedWorkDocument.ScoreAnnotation.ID, pageID: AssignedWorkDocument.Page.ID?, location: CGPoint, kind: AssignedWorkDocument.ScoreAnnotation.Kind)`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/init(id:pageID:location:kind:))

Initializes an instance of this object with the given
values.

### Inspecting a score annotation

[`typealias ID`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/ID-swift.typealias)

A type representing the stable identity of this score annotation.

[`var id: AssignedWorkDocument.ScoreAnnotation.ID`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/id-swift.property)

The stable identity of this score annotation.

[`enum Kind`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/Kind-swift.enum)

The kind of a score annotation.

[`var kind: AssignedWorkDocument.ScoreAnnotation.Kind`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/kind-swift.property)

The kind of score annotation this is. e.g. Incorrect or correct mark.

[`var location: CGPoint`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/location)

The location of the score annotation on the associated page.

[`var pageID: AssignedWorkDocument.Page.ID?`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/pageID)

The ID of the page this score annotation is for.

[`typealias Document`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/Document)

The document type this element is for.

### Comparing score annotations

[`static func == (AssignedWorkDocument.ScoreAnnotation, AssignedWorkDocument.ScoreAnnotation) -> Bool`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/==(_:_:))

Returns a Boolean value indicating whether two values are equal.

### Hashing the score annotation

[`func hash(into: inout Hasher)`](/documentation/Assignables/AssignedWorkDocument/ScoreAnnotation/hash(into:))

Hashes the essential components of this value by feeding them into the given hasher.

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`DocumentElement`](/documentation/Assignables/DocumentElement)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

[`AssignedWorkDocumentElement`](/documentation/Assignables/AssignedWorkDocumentElement)

[`Hashable`](/documentation/Swift/Hashable)

[`Identifiable`](/documentation/Swift/Identifiable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)