# `GSGlyph interpolateSmartLayer:instance:scale:targetGlyph:`

*Instance Method*

Adds the corresponding interpolated Smart Component layers to a target glyph.

## Declaration

```swift
func interpolateSmartLayer(_ baseLayer: GSLayer, instance: GSInstance, scale: CGFloat, targetGlyph: GSGlyph)
```

```objc
- (void) interpolateSmartLayer:(GSLayer *) baseLayer instance:(GSInstance *) instance scale:(CGFloat) scale targetGlyph:(GSGlyph *) targetGlyph;
```

```python
interpolateSmartLayer_instance_scale_targetGlyph_(baseLayer: GSLayer, instance: GSInstance, scale: float, targetGlyph: GSGlyph)
```

## Parameters

- `baseLayer` — The primary interpolated layer whose Smart Component coordinates are completed.
- `instance` — The instance that supplies the interpolation location.
- `scale` — The coordinate scale applied to the added layers.
- `targetGlyph` — The glyph that receives the added layers.

## Discussion

This method has no effect when the glyph has no glyph-local axes.

## 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 replaceLayersWithInterpolation:error:`](/Core/GlyphsCore/GSGlyph/replaceLayersWithInterpolation:error:) — Replaces layer contents with interpolation from the remaining layers in each layer group.
- [`GSGlyph nextLayerId:layerPos:onAxis:direction:`](/Core/GlyphsCore/GSGlyph/nextLayerId:layerPos:onAxis:direction:) — Finds the nearest font master in one direction along an axis while keeping the other axis coordinates fixed.

