mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
disable focus effects on overlay icon
This commit is contained in:
@@ -68,10 +68,7 @@ static UIImage* noImage;
|
|||||||
if ([_app.id isEqualToString:_app.host.currentGame]) {
|
if ([_app.id isEqualToString:_app.host.currentGame]) {
|
||||||
// Only create the app overlay if needed
|
// Only create the app overlay if needed
|
||||||
_appOverlay = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Play"]];
|
_appOverlay = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Play"]];
|
||||||
#if TARGET_OS_TV
|
#if !TARGET_OS_TV
|
||||||
_appOverlay.adjustsImageWhenAncestorFocused = YES;
|
|
||||||
_appOverlay.userInteractionEnabled = YES;
|
|
||||||
#else
|
|
||||||
_appOverlay.layer.shadowColor = [UIColor blackColor].CGColor;
|
_appOverlay.layer.shadowColor = [UIColor blackColor].CGColor;
|
||||||
_appOverlay.layer.shadowOffset = CGSizeMake(0, 0);
|
_appOverlay.layer.shadowOffset = CGSizeMake(0, 0);
|
||||||
_appOverlay.layer.shadowOpacity = 1;
|
_appOverlay.layer.shadowOpacity = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user