<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/Unicode/UTF8/isContinuation(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s7UnicodeO4UTF8O14isContinuationySbs5UInt8VFZ"
  },
  "title" : "isContinuation(_:)"
}
-->

# isContinuation(_:)

Returns a Boolean value indicating whether the specified code unit is a
UTF-8 continuation byte.

```
static func isContinuation(_ byte: Unicode.UTF8.CodeUnit) -> Bool
```

## Parameters

`byte`

A UTF-8 code unit.

## Return Value

`true` if `byte` is a continuation byte; otherwise, `false`.

## Discussion

Continuation bytes take the form `0b10xxxxxx`. For example, a lowercase
“e” with an acute accent above it (`"é"`) uses 2 bytes for its UTF-8
representation: `0b11000011` (195) and `0b10101001` (169). The second
byte is a continuation byte.

```
let eAcute = "é"
for codeUnit in eAcute.utf8 {
    print(codeUnit, UTF8.isContinuation(codeUnit))
}
// Prints "195 false"
// Prints "169 true"
```

---

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)