Contents

addSublayer(_:)

Appends the layer to the layer’s list of sublayers.

Declaration

func addSublayer(_ layer: CALayer)

Parameters

  • layer:

    The layer to be added.

Discussion

If the array in the sublayers property is nil, calling this method creates an array for that property and adds the specified layer to it.

See Also

Managing the layer hierarchy