ViewThatFits | Apple Developer Documentation

A view that adapts to the available space by providing the first child view that fits.