visionOS: hide toolbar from insert disk modal

This commit is contained in:
Jesús A. Álvarez 2024-02-10 14:36:56 +01:00
parent 632f01f169
commit e1adde78f0

View File

@ -112,6 +112,11 @@ API_AVAILABLE(ios(13.4))
[self dismissViewControllerAnimated:YES completion:nil];
}
}
#if defined(TARGET_OS_VISION) && TARGET_OS_VISION == 1
if ([segue.identifier isEqualToString:@"disk"]) {
[(UINavigationController*)segue.destinationViewController setToolbarHidden:YES];
}
#endif
}
- (void)presentationControllerDidDismiss:(UIPresentationController *)presentationController {