34

Seems like the iOS simulator added a new ToolBar, which I am unable to hide.

enter image description here

Is there any shortcut to hide it?

3 Answers3

27

Assuming you want a nice screenshot with the device the following worked for me, from Swany's answer on this Apple forum thread :

In a terminal, disable shadows on Screenshots with the following command:

defaults write com.apple.screencapture disable-shadow -bool TRUE; killall SystemUIServer

Take a screenshot with Screencapture, either by selecting a region without the Toolbar, or of the whole Simulator window and crop the Toolbar.

You can still add shadow on the image wherever you use it.

The following command reverses the change to the screencapture app :

defaults write com.apple.screencapture disable-shadow -bool FALSE; killall SystemUIServer
user2870968
  • 493
  • 4
  • 8
  • This answer is amazing. I didn't even know I needed this!! – Sam Carlton Jan 20 '22 at 18:20
  • You can just run these commands, and do ⌘ + shift + 4 + Spacebar on the simulator running your App and there you have it - screen capture with bazel. – UrosMi Apr 12 '22 at 16:47
  • 4
    You don't need to execute this command. 1. Just engage the screen capture with ⌘ + shift + 4 + Spacebar 2. Hold option when you click to do the screenshot. There will be no shadow – HJo Nov 09 '22 at 04:48
18

While you won't be able to hide the toolbar, I discovered a solution that worked very well for me and doesn't involve changing user defaults (which didn't work for me).

With the Simulator window open, open up the Screenshot application. On the floating utility bar, there will be an option for "Capture Selected Window".

Click on this, and it will turn your mouse cursor into a camera. Hover over the widow you want to take a screenshot of (Simulator in this case) and alt + click.

This will save a screenshot with no drop shadow, which you can easily crop in Preview or any other imaging editing software in order to remove the bar at the top.

It will have a transparent background so it will be very easy to work with.

Michael M.
  • 500
  • 5
  • 10
  • In the simulator, select Device, Trigger Screenshot to get a screenshot. This puts it in the Photos app of the simulator. To get it out of there, follow [this article](https://stackoverflow.com/questions/5488915/getting-images-from-iphone-simulator). – Victor Engel Aug 07 '22 at 15:00
  • Brilliant solution, thank you for sharing! – Fernando Rojo Oct 03 '22 at 00:49
7

No there is no way to hide the toolbar. It is an integrated toolbar and title bar.

If you'd like to see this option please file a feedback request for it.

russbishop
  • 16,587
  • 7
  • 61
  • 74