mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user