setViewport

open override fun setViewport(width: Int, height: Int, scale: Float)

The layer's bounds and gravity belong to whoever owns it, as with the Core Graphics path.