Declaration

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