finalFrame(for:)
Returns the ending frame rectangle for the specified view controller’s view.
Declaration
func finalFrame(for vc: UIViewController) -> CGRectParameters
- vc:
The view controller whose frame rectangle you want.
Return Value
The frame rectangle for the view or CGRectZero if the frame rectangle is not known or the view is not visible.
Discussion
The rectangle returned by this method represents the size of the corresponding view at the end of the transition. For the view being covered during the presentation, the value returned by this method might be CGRectZero but it might also be a valid frame rectangle.