Demo for SO Question 58913572
After add a SkinCoverWindow, code - (BOOL)prefersHomeIndicatorAutoHidden { return YES; }
in view controller don't auto hide home indicator.
I solved this by nofity SkinCoverRootViewController to update.
Is there a solution that can automatically work?
- (void)updateHomeIndicator:(NSNotification *)notification {
BOOL autoHidden = [notification.object boolValue];
self.autoHidden = autoHidden;
if (@available(iOS 11.0, *)) {
[self setNeedsUpdateOfHomeIndicatorAutoHidden];
}
}
- (BOOL)prefersHomeIndicatorAutoHidden {
return self.autoHidden;
}