layoutIfNeeded()
Recalculate the receiver’s layout, if required.
Declaration
func layoutIfNeeded()Discussion
When this message is received, the layer’s super layers are traversed until a ancestor layer is found that does not require layout. Then layout is performed on the entire layer-tree beneath that ancestor.