How to create a UIView that dynamically adapts to its contents

How to create a UIView that dynamically adapts to its contents

More to explore