# `GSGlyph interpolatedLayer(for:masters:scale:keepSmart:smartSettings:layerName:)`

*Instance Method*

A detached layer interpolated for an instance together with its additional layers.

## Declaration

```swift
func interpolatedLayer(for instance: GSInstance, masters: [GSFontMaster], scale: CGFloat, keepSmart: Bool, smartSettings: [AnyHashable : Any]? = nil, layerName: String? = nil) throws -> (layer: GSLayer, additionalLayers: [GSLayer])
```

## Parameters

- `instance` — The instance that supplies the interpolation location and settings.
- `masters` — The font masters participating in the interpolation.
- `scale` — The coordinate scale applied to the result.
- `keepSmart` — Whether Smart Components remain components when possible.
- `smartSettings` — Smart Component settings applied before interpolation, or `nil` for no override.
- `layerName` — The name of corresponding source layers to interpolate, or `nil` for the primary layers.

## Discussion

The additional layers contain interpolated color and corner layers.

## See Also

### Interpolation

- [`GSGlyph interpolate:masters:error:`](/Core/GlyphsCore/GSGlyph/interpolate:masters:error:) — A detached layer formed by applying interpolation coefficients to compatible source layers.
- [`GSGlyph interpolateSmartLayer:instance:scale:targetGlyph:`](/Core/GlyphsCore/GSGlyph/interpolateSmartLayer:instance:scale:targetGlyph:) — Adds the corresponding interpolated Smart Component layers to a target glyph.
- [`GSGlyph replaceLayersWithInterpolation:error:`](/Core/GlyphsCore/GSGlyph/replaceLayersWithInterpolation:error:) — Replaces layer contents with interpolation from the remaining layers in each layer group.
- [`GSGlyph nearestMaster(from:alongAxisAt:towardHigherValues:)`](/Core/GlyphsCore/GSGlyph/nearestMaster(from:alongAxisAt:towardHigherValues:)) — The nearest font master in one direction along an axis, or `nil` when none exists.

