---
title: isAtEnd
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsunarchiver/isatend
---

# isAtEnd

A Boolean value that indicates whether the receiver has reached the end of the encoded data while decoding.

## Declaration

```swift
var isAtEnd: Bool { get }
```

## Discussion

Discussion true if the receiver has reached the end of the encoded data while decoding, otherwise false. You can invoke this method after invoking decodeObject to discover whether the archive contains extra data following the encoded object graph. If it does, you can either ignore this anomaly or consider it an error.

## See Also

### Managing an NSUnarchiver

- [systemVersion](foundation/nsunarchiver/systemversion-swift.property.md)
