---
title: end()
framework: gamekit
role: symbol
role_heading: Instance Method
path: gamekit/gkgameactivity/end()
---

# end()

Ends the game activity if it’s not already ended.

## Declaration

```swift
func end()
```

## Mentioned in

Creating activities for your game

## Discussion

Discussion This reports all associated achievements and submit scores to leaderboards.

## See Also

### Updating the activity state

- [start()](gamekit/gkgameactivity/start().md)
- [pause()](gamekit/gkgameactivity/pause().md)
- [resume()](gamekit/gkgameactivity/resume().md)
