Contents

init(identifier:title:score:maxScore:)

Initializes an activity item that holds a score value.

Declaration

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.