# `GSLayer transformFast:doComponent:`

*Instance Method*

Applies an affine transform to the complete layer and conditionally transforms components without normal edit bookkeeping.

## Declaration

```swift
func transformFast(_ transform: AffineTransform, doComponent componentCallback: ((GSComponent?) -> Bool)? = nil)
```

```objc
- (void) transformFast:(NSAffineTransform *) transform doComponent:(BOOL (^)(GSComponent *component)) componentCallback;
```

```python
transformFast_doComponent_(transform: NSAffineTransform, component: GSComponent, componentCallback)
```

## Parameters

- `componentCallback` — A block that returns whether a component or component hint should be transformed.

## See Also

### General Transformations

- [`GSLayer transformSelection:`](/Core/GlyphsCore/GSLayer/transformSelection:) — Applies an affine transform to the selected elements.
- [`GSLayer transform:checkForSelection:`](/Core/GlyphsCore/GSLayer/transform:checkForSelection:) — Applies an affine transform to editable layer content.
- [`GSLayer transform:checkForSelection:doComponents:`](/Core/GlyphsCore/GSLayer/transform:checkForSelection:doComponents:) — Applies an affine transform to editable layer content.
- [`GSLayer transform:checkForSelection:doComponent:`](/Core/GlyphsCore/GSLayer/transform:checkForSelection:doComponent:) — Applies an affine transform to editable layer content and conditionally transforms components.
- [`GSLayer transformFast:`](/Core/GlyphsCore/GSLayer/transformFast:) — Applies an affine transform to the complete layer without normal edit bookkeeping.

