added a highlight state for focused views (can now see what's selected in tvOS)
This commit is contained in:
1 parent
eadcf3b3eb
commit
57191e3b9a
2 files changed
+12
-4
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user