-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Rendering preview's can be optimised by checking XCODE_RUNNING_FOR_PREVIEWS environment variable
@AppBuilder override var body: AppBuilderContent {
MainScene { .main }
.mainScreen {
// Avoid loading `ShowsListViewController` is rendering previews:
if ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] == "1" {
return UIViewController()
}
return NavigationController(ShowsListViewController(viewModel: ShowsListViewModel()))
.style(.transparent)
.hideNavigationBar()
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels