in my function I don't use adjustsImageWhenAncestorFocused I resize the image manually:
override func didUpdateFocusInContext(context: UIFocusUpdateContext, withAnimationCoordinator coordinator: UIFocusAnimationCoordinator) { if (self.focused) { self.imageView.frame.size.width = self.imageView.frame.width+30 self.imageView.frame.size.height = self.imageView.frame.height+30 self.imageView.frame.origin.x = self.imageView.frame.origin.x - 15 self.imageView.frame.origin.y = self.imageView.frame.origin.y - 15 else { self.imageView.frame.size.width = self.imageView.frame.width-30 self.imageView.frame.size.height = self.imageView.frame.height-30 self.imageView.frame.origin.x = self.imageView.frame.origin.x + 15 self.imageView.frame.origin.y = self.imageView.frame.origin.y + 15 } }
This way you do not need to deal with shadow. Hope this helps
source share