0

I have a 2 layers in Sketch the iPhone frame and the image in the background.

enter image description here

This is what it produces

enter image description here

Is there a way to hide or erase of that extra area using Sketch ?

2

I'd try masking the image with a shape.

Make a rectangle with rounded corners in the middle of that phone border and use it to mask the image.


I did this using an old version of Sketch, so there may be some differences.

  1. I made a rectangle with the border hitting somewhere inside the phone border. Since the phone border is more than a few pixels thick, you don't have to make this very accurate. Just make sure it stays inside it.

    • I'm not sure about the latest version of Sketch, but in mine, the fill of the shape layer needs to be unchecked or else the empty space within the masking rectangle shape will have the fill color. Although you can change this after you've masked it.
  2. Then I selected the shape layer + the image layer and used Layer › Mask › Mask with Selected Shape

  3. And finally, I arranged it behind the phone.

    • I did also add some shadow to the image layer afterward since both the masking shape layer and the image can be edited separately after the masking.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.