---
title: AVCaption.Ruby
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avcaption/ruby
---

# AVCaption.Ruby

An object that presents ruby characters.

## Declaration

```swift
class Ruby
```

## Overview

Overview Ruby characters are small annotations, typically used in Japanese content, that render alongside the base text.

## Topics

### Creating Ruby text

- [init(text:)](avfoundation/avcaption/ruby/init(text:).md)
- [init(text:position:alignment:)](avfoundation/avcaption/ruby/init(text:position:alignment:).md)

### Accessing text properties

- [text](avfoundation/avcaption/ruby/text.md)
- [position](avfoundation/avcaption/ruby/position-swift.property.md)
- [AVCaption.Ruby.Position](avfoundation/avcaption/ruby/position-swift.enum.md)
- [alignment](avfoundation/avcaption/ruby/alignment-swift.property.md)
- [AVCaption.Ruby.Alignment](avfoundation/avcaption/ruby/alignment-swift.enum.md)

### Initializers

- [init(coder:)](avfoundation/avcaption/ruby/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Accessing advanced typography

- [ruby(at:)](avfoundation/avcaption/ruby(at:).md)
- [textCombine(at:)](avfoundation/avcaption/textcombine(at:).md)
- [AVCaption.TextCombine](avfoundation/avcaption/textcombine.md)
