Skip to main content

Since: 1.38.0

End Page

Call -[FSPage end] to mark the end of the view of the page. This will make the current page not defined, if the page is the current page. If the page is not the current page, this will have no effect.

Calling this method is only needed if you intend to leave portions of your app without defined pages. Otherwise, it is recommended to not call this method. For example, you may only wish to define pages for a checkout flow within your app. You would want to call end so when the user leaves the flow other portions of the app without defined pages won't be treated as part of the checkout page.

-[FSPage end] is analogous to viewDidDisappear in UIKit and onDisappear in SwiftUI and should typically be called there, if at all.

Additional Information

(void)end;

Example Invocation

id<FSPage> _page; // Initialized in viewDidLoad

- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
[_page end];
}