Questions tagged [paintcode]

PaintCode is a vector drawing app that generates CoreGraphics code for Objective-C (iOS, macOS), Swift (iOS, macOS) or Xamarin.iOS.

PaintCode is a Mac app that takes as input vector art, and generates code which will draw images. The code can then be used in Mac, iOS, projects.

Features,

  • Standard vector drawing capabilities.
  • Dynamic colors, gradients, variables, symbols and resizing.
  • SVG, PSD, PDF, AI, EPS import.
  • Code generation for CoreGraphics (Swift, Objective-C, Xamarin.iOS).
  • Simple integration of the generated code into projects.
  • Also exports SVG, PNG, PDF, animated GIF.
  • paintcodeapp.com
99 questions
0
votes
3 answers

Adding images with PaintCode into Xcode 7 using Swift 2.0

I am trying to move a swift file that I exported from PaintCode 2 into my project. I did the following. Exported the project via PaintCode Moved the file into Xcode On my storyboard I put a UIView Clicked on the newly created UIView and selected…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
0
votes
1 answer

How to change variable of custom UIView from ViewController

I have created a custom UIView (ProgressView) where I draw a shape imported via StyleKit from PaintCode. Below are the codes. I have declared instance variable property in my custom UIView and when I try to change property from ViewController, It…
Alok
  • 119
  • 1
  • 9
0
votes
1 answer

Using PathMenu with SVG in a Paintcode StyleKit

I need to change the image programmatically that PathMenu uses to design. I have a PaintCode generated StyleKit which draws .SVG files, not an image in a Asset.xcassets. PathMenu uses something like this to take the images: let menuItemImage =…
0
votes
1 answer

Adding paintcode stylekit images to storyboard not showing preview

I'm following the instructions for adding stylekit images to storyboards by adding an object, setting it's class to stylekit and then right click dragging to the UIImage from the stylekit object - however I'm not seeing the images show up in …
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
0
votes
1 answer

How do I add the output from point code to my Swift OSX Project?

If I create an object in paint code I, am then either given a style sheet or code from the tab section. Stylesheet: import Cocoa public class StyleKitName : NSObject { //// Drawing Methods public class func drawMain() { //// Color…
Kian Cross
  • 1,818
  • 2
  • 21
  • 41
0
votes
1 answer

Why doesn't this shape display on my view?

My problem is that I am unable to draw an oval in a view controller using swift for an application being written for OSX. I have the following code in a view controller: class TouchController: NSViewController { override func viewDidLoad() { …
Kian Cross
  • 1,818
  • 2
  • 21
  • 41
0
votes
2 answers

Format a string using Xcode's Code Highlighting Colours

I have an app that exports Objective-C and Swift code. In the preview window for this auto generated code I would like to format the text with the same colours the default theme of Xcode uses i.e. green for comments, blue for numbers, red for…
Mark Bridges
  • 8,228
  • 4
  • 50
  • 65
0
votes
1 answer

How to achieve my drawing using a bezier path?

I would like to get something like this: I guess one way to do it would be to draw my rectangle with the two rounded angle in a subpath. Then add another subpass to draw the arrow. My question is: is there a simpler way to draw the arrow than…
Nico
  • 6,269
  • 9
  • 45
  • 85
0
votes
1 answer

UIBezierPath vs putting png in imageassets

I'm helping create an app that will use images that can be resized (think AutoCAD). Fortunately, I have PaintCode and I have Illustrator so it's very easy for me to convert a svg file into code should I want to. I converted one image into code and…
jasonnoahchoi
  • 871
  • 5
  • 16
0
votes
1 answer

Paintcode stylekit in storyboard

I have created various graphics with PaintCode. As i export i get a generated .m and .h file. For my project this is the generated .h file: @interface StyleKit2 : NSObject // Colors + (UIColor*)black; + (UIColor*)mustad_blue; +…
Lord Vermillion
  • 5,264
  • 20
  • 69
  • 109
0
votes
1 answer

Supporting @3x, @2x Tab bar icons with PaintCode 2 StyleKit

I followed the PaintCode tutorials on StyleKit and I've successfully exported icons into a Swift project (code only - MyStyleKit.swift file). I'm trying to understand the relationship between the UIImage generated in code and the image sizes…
elprl
  • 1,940
  • 25
  • 36
0
votes
1 answer

PaintCode 2 crashes on start

All my apps work fine but this new installed paint code crashes on start, so I cant even use it. log here http://pastebin.com/ZS4a2whE What could i do? Is it because of VMWare?
s1ddok
  • 4,615
  • 1
  • 18
  • 31
0
votes
2 answers

How do I force PaintCode to not round numbers when converting them to string?

Simple question, but I can't seem to find an answer. If I am trying to display a battery voltage, for example, a difference of a few decimal points can be very important. If I have this: stringFromNumber(voltage) + 'V' and voltage is 12.4, it will…
EddBC
  • 71
  • 6
0
votes
2 answers

Launch image from code (Paintcode)

I have a launch image with text, that I'd like to internationalize (I know that Apple doesn't like launch images with text though...). It would be great, if I could do this in code, because then the footprint of the app will be much smaller. Is it…
brainray
  • 12,512
  • 11
  • 67
  • 116
0
votes
1 answer

Paintcode generated iOS code for custom button(not working)

I'm creating rounded button for my app with paintcode. The steps I follows are - creating new class derived for UIButton, paste the code generated by paintcode inside (void)drawRect:(CGRect)rect and set button to use my custom class. But I'm doing…
user3273345
  • 127
  • 2
  • 9