recordModalLabel.lineBreakMode = .byCharWrapping
단어 기반, 문자 기반 등으로 개행의 위치를 변경시킬 수 있다.
recordModalLabel.text = text
recordModalLabel.preferredMaxLayoutWidth = recordModalLabel.frame.size.width
recordModalLabel.invalidateIntrinsicContentSize()
recordModalLabel.frame.size.height = recordModalLabel.intrinsicContentSize.height
https://stackoverflow.com/questions/446405/adjust-uilabel-height-depending-on-the-text
Dynamic UILabel | https://jayeshkawli.ghost.io/using-autolayout-to-dynamically-resize-uilabel/