ViewMetricsObserver
class ViewMetricsObserver(view: View, onChange: (ViewMetrics) -> Unit) : RememberObserver, View.OnLayoutChangeListener
A lifecycle aware View.OnLayoutChangeListener that calculates ViewMetrics and notifies onChange callback on target view layout update.