# `GSLayer copyWithOptions:`

*Instance Method*

Creates an independent copy with the requested optional content.

## Declaration

```swift
func copy(options: GSGlyphCopyOptions = []) -> Self
```

```objc
- (instancetype) copyWithOptions:(GSGlyphCopyOptions) options;
```

```python
copyWithOptions_(options: GSGlyphCopyOptions) -> GSLayer
```

## Parameters

- `options` — The content and initialization behavior to use for the copy.

## Discussion

Shapes, anchors, hints, metrics, attributes, and user data are always copied. Options control additional content such as the background, guides, annotations, and drawing state.

## See Also

### Copying

- [`GSLayer copyWithOptions:selection:`](/Core/GlyphsCore/GSLayer/copyWithOptions:selection:) — Creates an independent copy with the requested optional content and selection handling.

