added a highlight state for focused views (can now see what's selected in tvOS)

This commit is contained in:
Diego Waxemberg committed 2018-08-26 10:53:28 -07:00
1 parent eadcf3b3eb
commit 57191e3b9a
2 files changed
+12 -4

No files matched your search

+8
View File
@@ -855,4 +855,12 @@ static NSMutableSet* hostList;
[self beginForegroundRefresh];
}
- (void)didUpdateFocusInContext:(UIFocusUpdateContext *)context withAnimationCoordinator:(UIFocusAnimationCoordinator *)coordinator {
if (context.nextFocusedView != nil) {
[context.nextFocusedView setAlpha:0.8];
}
[context.previouslyFocusedView setAlpha:1.0];
}
@end