Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode: Export Storyboard to image

I need a huge Xcode Storyboard in an image format so we can plot it on a plotter and mount it on one of the office walls. I have tried exporting it, but that only allows you to use storyboard format. Just trying to print it doesn't work either, as Xcode cannot print storyboard files.

Any solutions short of taking several screenshots and sowing them together will be greatly appreciated.

like image 231
EZFrag Avatar asked Oct 22 '12 14:10

EZFrag


1 Answers

Here it is the best hack I found :

Using a applescript it is possible to resize Xcode beyond screen size (it is possible even manually) :

set front_app to "Xcode"

tell application front_app
    activate
    set bounds of front window to {0, 0, 5000, 1000}
end tell

The maximum height seems to be the screen height, but it is possible to have the width much bigger than the screen's width.

Afterwards with a screen capture software it is possible to capture the entire Xcode window(beyond screen's bounds).

In my test, I made 5 files for a 5000px x 5000px image. It is not the best option but it works. Hopefully Apple will add the print function or maybe somebody can automate the screen capture/stitch part.

like image 200
Adrian Avatar answered Oct 19 '22 17:10

Adrian