← Home

UIKit's new callback: viewIsAppearing

UIKit gained a helpful callback called viewIsAppearing. It runs right after viewWillAppear but before viewDidAppear.

By the time this callback fires, the view has been placed in the overall hierarchy and arranged correctly by its parent. That makes it an excellent moment to run code that relies on the view’s initial properties, such as its size.

Where the viewIsAppearing callback sits in the lifecycle