I just think the document is wrong when it says "Current receiver size." This is only a precedent, but there are others: for example, if you want the view to return the best size, taking into account an arbitrary size, you call this method, passing an arbitrary size as a parameter.
Is this available space? In other words, the parent asks the child, "given that there is a free space of X x Y points, how much do you want to be big?"
Yes, you have an idea, but do not limit the value of the argument to "available space." This is just an arbitrary size, which may or may not fit the available space. It depends on how you use this method. However, it is assumed that the view always returns what it thinks is its best size (the size that best matches its views) if it should match the size passed as an argument.
Look here, this should answer your question: iPhone is the input parameter for the sizeThatFits method for UIView
source share