I have a customView contain some subViews like this:
I have set messageLabel trailing constraint to it's superView = 4
I want my customView width constraint will be set automatically base on messageLabel. If I create customView like this:
FlyingMessageDisplayView(frame: CGRect(x: UIScreen.main.bounds.width, y: 0, width: 100, height: 40))
how to set it's width size because messageLabel can be long or sort.
