SBMainSwitcherViewController

From iPhone Development Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

SBMainSwitcherViewController is a UIViewController responsible for displaying the app switcher on iOS 9+.

Getting list of apps

SBMainSwitcherViewController *switcher = [%c(SBMainSwitcherViewController) sharedInstance];
NSArray *recentApps = switcher.recentAppLayouts; // Objects are of type SBAppLayout