sizeThatFits
TypeScriptsizeThatFits(proposal: ProposedViewSize): { width: number; height: number }Swift declarationfunc sizeThatFits(_ proposal: ProposedViewSize) -> CGSizeReturns the space needed by the text view, for a proposed size. - Parameter proposal: the proposed size of the text view. - Returns: the size that the text view requires for the given proposal.