Returns the optimal size of the view based on its current constraints.
- iOS 6.0+
- tvOS 9.0+
The optimal size for the view.
This method returns a size value for the view that optimally satisfies the view's current constraints and is as close to the value in the
target parameter as possible. This method does not actually change the size of the view.