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
13
votes
1 answer

iOS - which is the better option to put images? Core Graphics(PaintCode App) vs Image files(png)

I am developing an iOS app which uses quite a few images. I am kind of confused about how to load the images in the app. A similar question was asked around 5 years ago. But a lot has changed since then. So I thought, it would make more sense to…
Harshit Gupta
  • 1,200
  • 12
  • 27
13
votes
3 answers

Searching for a "PaintCode" for android

Are there any vector drawing applications that generate native code for both iOS and Android? I'd like a tool for making UI Controls and Buttons for both iOS and Android (in Xamarin). I can make great dynamic objects with PaintCode for iOS, but…
LampShade
  • 2,675
  • 5
  • 30
  • 60
13
votes
3 answers

Using an NSNumberFormatter in an NSPopover

Is there any way to get an NSNumberFormatter (or presumably any other NSFormatter) to work in an NSPopover? The NSTextField's value in the popover is bound to an NSViewController's representedObject. When an invalid number is entered into the field…
chockenberry
  • 7,811
  • 5
  • 32
  • 41
9
votes
3 answers

Swift SKSpriteNode with UIImage

I've a problem with creating an SKSpriteNode with an UIImage. I'm creating the assets I use for my App with PaintCode (PaintCode creates a Swift file with drawing methods and image methods which allow me to display the created images). My problem…
Blackhawk
  • 133
  • 1
  • 6
8
votes
1 answer

How to set text color when using drawInRect?

I have been using PaintCode to draw some of the graphics within my app, some of the drawn elements have text that is drawn using "drawInRect". The text is always showing up black regardless of what I do to try and set the color. here is the code…
Nathan
  • 1,609
  • 4
  • 25
  • 42
7
votes
1 answer

How to maintain aspect ratio when resizing PaintCode generated view?

I'm using PaintCode to generate a stylekit for my xamarin.ios app. I have a simple logo that I pasted into PaintCode from illustrator. Everything looks fine, I have a frame and the generated draw method takes a rect. At one point I had it resizing…
jmichas
  • 1,139
  • 1
  • 10
  • 21
6
votes
1 answer

SwiftUI - UIViewRepresentable glitching when wrapping UIView with custom drawing

I've got an image that I made in PaintCode that I want to animate. PaintCode provides a drawing function for UIKit, not SwiftUI. So for testing I can implement it in UIKit with the following VC: import UIKit class ViewController: UIViewController…
RogerTheShrubber
  • 986
  • 8
  • 19
6
votes
3 answers

Warning: Could not load any Objective-C class information using PaintCode's code

I am trying to draw svg maps using code generated through paintcode. The code is working fine when I am running it using simulator. But If I run it in device (iPad), it is crashing in drawCanvas method giving Warning : Could not load any…
PriyaJain
  • 99
  • 1
  • 2
  • 6
6
votes
2 answers

iOS UIImage with border has a thick corner-radius

I'm attempting to build a UIImage in code using CoreGraphics (via PaintCode) that has a border and a corner radius. I'm finding that the image has a noticeably thicker border around the corner. This seems like it would either be an iOS bug or…
michaellindahl
  • 2,012
  • 5
  • 36
  • 64
6
votes
3 answers

Is there any way to animate Paintcode variables?

I have a stylekit in paintcode with one stylekit drawing method that takes a single parameter - is there any way I can use UIView.animateWithDuration(etc..) to animate that parameter so my view updates smoothly?
teo751
  • 321
  • 1
  • 4
  • 13
6
votes
1 answer

PaintCode: Circle Maintains A/R?

In Paintcode 2, I have a circle inside a frame inside a canvas. The constraints on the circle are set like this: To get the circle to size up and not become an ellipse, I have to Know the expected aspect ratio Code it in Objective-C myself Is…
Dan Rosenstark
  • 68,471
  • 58
  • 283
  • 421
6
votes
1 answer

Is there a way to wire up a color to a variable?

I would like to 'wire' up a 'color' variable to the an imported svg. I would like to change the color of a variable of the fill with a Stylekit method.Is there a way to do so?
brainray
  • 12,512
  • 11
  • 67
  • 116
5
votes
3 answers

Reference enclosing frame in PaintCode expression

I'm trying to use paint code to draw a roundrect with different corner radii. I have nearly everything working by drawing two circles and two roundrects. The problem is I can't make one of the roundrects draw at x offset circle radius have width of…
Rog
  • 17,070
  • 9
  • 50
  • 73
4
votes
2 answers

How to use color variable with PaintCode & Xcode

I have an Icon drawn via PaintCode. I need to change his color in XCode, programmatically. On PaintCode, I set a Variable "ChevronColor" to the Stroke Color. For now I have: @IBDesignable class IconClass: UIView { override func draw(_ rect:…
cmii
  • 3,556
  • 8
  • 38
  • 69
4
votes
2 answers

Overlapping loader circle

I was trying to reproduce the overlapping circle Apple made for the application "Activity". (See image below). If you use standard Bezier Path the staring/ending position will have effects only between 0 and 2PI. If you try, for example, to fill…
GrizzlyBear
  • 1,098
  • 1
  • 13
  • 27
1
2 3 4 5 6 7