---
title: "init(identifier:title:score:maxScore:)"
framework: classkit
role: symbol
role_heading: Initializer
path: "classkit/clsscoreitem/init(identifier:title:score:maxscore:)"
---

# init(identifier:title:score:maxScore:)

Initializes an activity item that holds a score value.

## Declaration

```swift
init(identifier: String, title: String, score: Double, maxScore: Double)
```

## Parameters

- `identifier`: A unique string identifier for the activity item.
- `title`: A human readable name for the activity item.
- `score`: The score earned during completion of a task.
- `maxScore`: The maximum possible score, against which the reported score should be judged.
