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
1
vote
1 answer

How to access a layer inside UIView custom class generate with Paintcode?

I'm using Paintcode V3 and last Xcode for my project. In Paintcode I draw a red path, kind of "clock hand" with a radius variable to be able to rotate it. In my Xcode project, this custom UIView is added to a main view. When the red path is…
cmii
  • 3,556
  • 8
  • 38
  • 69
1
vote
0 answers

Import .Sketch into Java program

I have a .sketch file that I have been using for design work. I know that there is paintcode for converting that into objective-c etc. however for my assignment I need to write it in java. Hence is there an easy way to import it into a java UI…
Cjen1
  • 1,826
  • 3
  • 17
  • 47
1
vote
1 answer

Views drawn from code (PaintCode) are pixelated, very pixelated when scaled

I am building an app that overlays views drawn with code (output from PaintCode) onto photos. I have added gesture recognizers to rotate and scale the views drawn with code. There is some mild pixelation on the views drawn on top. If I do any…
aaronfalls
  • 201
  • 1
  • 13
1
vote
0 answers

How to get PaintCode generated code for a view working in Xcode?

I am having trouble at the moment fully understanding how to use PaintCode for the first time. I created my UI in PaintCode and converted it into Objective C code using StyleKit. So it generated a Special.h and Special.m file which I imported into…
hinterbu
  • 747
  • 2
  • 7
  • 12
1
vote
1 answer

PaintCode 2 vs 3 incompatible due to resizableImageWithCapInsets

I recently switched from using PaintCode 2 to PaintCode 3, I am using it together with xCode/Swift. I noticed however, that all my image generating functions not behave differently. They seam to standard addopt cap insets. As an example below you…
HixField
  • 3,538
  • 1
  • 28
  • 54
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
1 answer

Invalid redeclaration of "StyleKitSettableImage" in Paintcode

I have two Paintcode Stylekit swift classes to write two different images into two different views. The first one works well, but when I import the second one these two function @objc protocol StyleKitSettableImage { func setImage(image:…
Fabio Cenni
  • 841
  • 3
  • 16
  • 30
1
vote
1 answer

Xcode resize vector shape generated with paintcode

I created a vector shape with Paintcode an the I need to draw the image into a BarButtonItem; i know that i have to use myBarButtonItem.image = StyleKit.imageOfCanvas1(CGRectMake(0, 0, 30, 30)), but this is the result So how can i do to solve this…
Fabio Cenni
  • 841
  • 3
  • 16
  • 30
1
vote
2 answers

UIButton in PaintCode (Swift)

So i've been playing around with PaintCode and StyleKits in Xcode. I made a button, created a UIView with it's own subclass, and it shows up fine in my ViewController and on my device. However, I want to transform this UIView into a UIButton, as I…
1
vote
1 answer

Moving Tail Animation

I want to make an animation with a moving line, similar to a dog waging his tail. I'm not sure how to begin. I've used Core Animation's CAShapeLayer for progress bars before but don't know if it would work for this. I also used PaintCode in the past…
JEL
  • 1,540
  • 4
  • 23
  • 51
1
vote
1 answer

Dynamic UIBezierPath for Animations

I want to create an animation where an object animates its position along a path. The trouble I am having is making this path dynamic meaning that it works on all screen sizes. The spaceship in the gif above follows a "U" shape path initially. I…
JEL
  • 1,540
  • 4
  • 23
  • 51
1
vote
2 answers

'blendedColorWithFraction:ofColor:' in iOS Swift and ObjC

I've got a simple gradient: 2 colors, 1 location. But it's spitting out code that can't work on UIColors: let gradient = CGGradientCreateWithColors(CGColorSpaceCreateDeviceRGB(), [gradientColor2.CGColor, gradientColor2.blendedColorWithFraction(0.5,…
Will Larche
  • 3,119
  • 7
  • 26
  • 34
1
vote
2 answers

paintcode and "use of string literal for Objective-C selectors is deprecated; use '#selector' instead"

Since the update to xCode 7.3 and swift 2.2 code generated by PaintCode now produces the following warnings: Use of string literal for Objective-C selectors is deprecated; use '#selector' instead Can this be resolved via PaintCode configuration or…
HixField
  • 3,538
  • 1
  • 28
  • 54
1
vote
1 answer

PaintCode NSButton displays upside-down

I am using PaintCode to create a button. I import the StyleKit, and create the NSButton Class for my RankView button. Like this: import Cocoa @IBDesignable class RankView: NSButton { override func drawRect(dirtyRect: NSRect) { …
Aaron
  • 1,312
  • 3
  • 14
  • 25
1
vote
1 answer

Inserting PaintCode code into UIImageView in Swift

I am experimenting with PaintCode. As an example, I've imported an abstract Illustrator drawing file, which has produced the below bezier Swift code. On my storyboard I have an UIImageView named exampleImageView that I want to display the PaintCode…
user4806509
  • 2,925
  • 5
  • 37
  • 72