Make ASControlNode the default focusable view. This is so that we can receive touch events that will manipulate the view.

This commit is contained in:
Aaron Schubert
2016-02-23 10:39:32 +00:00
parent 682903fba5
commit 5d367328d9

View File

@@ -424,5 +424,16 @@ void _ASEnumerateControlEventsIncludedInMaskWithBlock(ASControlNodeEvent mask, v
- (void)endTrackingWithTouch:(UITouch *)touch withEvent:(UIEvent *)touchEvent
{
}
#if TARGET_OS_TV
#pragma mark - tvOS
- (BOOL)canBecomeFocused
{
return YES;
}
- (BOOL)shouldUpdateFocusInContext:(nonnull UIFocusUpdateContext *)context
{
return YES;
}
#endif
@end