Digital design application for Mac, produced by Bohemian Coding.
Questions tagged [sketchapp]
117 questions
1
vote
1 answer
Can I Automate a Task in Sketch?
I'm trying to create an agenda on Sketch (don't ask me why I chose Sketch) and I really don't want to enter each in date for each page of the agenda. Is there an automated way to do this so that the date is updated for each new artboard (page)?…

S.v.v.
- 11
- 2
1
vote
1 answer
Sketch+PaintCode vs Storyboard
Sketch is a UX and UI design tool. PaintCode has a code generating plugin for Sketch that can generate CoreGraphic code for all designs.
For iOS designs that are mostly using the standard design elements like navigation bar, table views and simpler…

Dee
- 1,887
- 19
- 47
1
vote
2 answers
Sketch Plugin - NSFileManager contentsOfDirectoryAtPath - not a function
I'm trying to make a plugin for Sketch that allows me to automate the production of multilingual assets.
Right now, I select a list of languages files that kick off the process. I use NSOpen Panel to select these. For each language file, it makes a…

Ratedg
- 11
- 3
1
vote
1 answer
Sketch with Dropbox and multiple users
I am using Bohemian Coding Sketch to design websites. All my files are in Dropbox, shared with a team (another designer). Most of the time we are working together with same files — one is editing, another is watching and discussing. I think this is…

dandaka
- 829
- 2
- 9
- 19
1
vote
1 answer
StoryBoard Different screen sizes iOS
I'm trying to make an app. I prepared the ui with sketch app.And I export the ui , it is like this:
I add some text field and button to View
But when I use Auto Layout and constraints buttons and text fields are going to another place.I need the…

Murat Kaya
- 1,281
- 3
- 28
- 52
1
vote
1 answer
Set a background image for NSWindow using Cocoascript
I'm trying to create a window in this style:
I have the following code, but I just get a back background. I guess it can't find the image.
var win = [[NSWindow alloc] init]
[win setFrame:NSMakeRect(0, 0, 320, 200) display:false]
[win…

ed209
- 11,075
- 19
- 66
- 82
0
votes
1 answer
How can I change the document color space to P3 in Sketch?
I'm trying to create a plugin for Sketch, and I'd like to know how to change the color space of a Sketch document file to P3. Can anyone help?
var onRun = function(context) {
var doc = context.document;
doc.changeColorSpace(ColorSpace.P3,…

jongho cook
- 3
- 2
0
votes
1 answer
Applying Scale Transform to SVG group
I have provided, as an example, an SVG of a lamp I created using Sketch. I intend for the lamp's head to scale by a factor (e.g. 1.2 here) when the cursor hovers over - to indicate interactivity. The issue is, however, when hovering over the lamp…

ev350
- 429
- 3
- 16
0
votes
0 answers
Unable to create a sketch plugin due to terminal errors
**I see the error below when I use the command npm run start **
node:internal/crypto/hash:71
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash…

Pavan
- 1
0
votes
0 answers
Accessing currently selected artboard in Sketch App?
I've looked all over and can't find a simple method to do this. And the API docs seem incomplete.
Is there a way with Sketch's plugin API to access the currently selected artboard? All I can come up with is checking by looping over them all.

Benjamin Allison
- 2,134
- 3
- 30
- 55
0
votes
1 answer
Exporting SVG icon from Sketch without the "?xml" tag
Is it somehow possible to export SVG icon from the Sketch without the "?xml" tag?
Thank you.

Michael Rýdl
- 97
- 1
- 8
0
votes
0 answers
In order to save the size of exported SVG file, I want to reuse a symbol but how could I do that with Sketch?
I am using Sketch 70.2 (so far the latest version).
I have a symbol and two instances on the stage:
However, when I exported this, the exported SVG didn't take advantage of reusing that symbol. It would boost the SVG file size especially when the…

AGamePlayer
- 7,404
- 19
- 62
- 119
0
votes
1 answer
Can I import a Figma or Sketch file into Xcode?
I want to make sure my app is pixel perfect. Is there a way Xcode can import a Figms or Sketch file so all the UI is created and aligned perfectly?

user1590819
- 55
- 1
- 9
0
votes
1 answer
Dynamically generating files on heroku
I want to create sketch-files dynamically and make them downloadable. I want to use sketch-constructor (here is an example that is working on my computer).
The code runs on heroku and the is even the console.log() of the fulfilled promise but i…

Chrissy
- 19
- 1
- 4
0
votes
2 answers
Swift shadow does not spread correctly
I'm been trying to create a shadow for my UIView. I looked around and found an extension for the CALayer class from this post. https://stackoverflow.com/a/48489506/9188318
So far its been working well for me until I try to put in a non 0 number for…

Talon Brown
- 127
- 13