Contents

viewIfLoaded

The view controller’s view, or nil if the view isn’t yet loaded.

Declaration

var viewIfLoaded: UIView? { get }

Discussion

If the view controller’s view has already been loaded, this property contains that view. If the view has not yet been loaded, this property is set to nil.

See Also

Managing the view