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
2 answers

Applying animation on a circular chart

I have built a circular graph very similar to this example in paintcode: http://www.paintcodeapp.com/news/animating-apple-watch-activity-rings-in-paintcode I have successfully drawn out the control on my iOS view with ease, but now I would like to…
Greg
  • 181
  • 3
  • 11
1
vote
1 answer

PaintCode animation in Xcode

I am trying to understand how PaintCode animations can be intergated in Xcode. In my example I have a ball going from right to left. I want the animation to start as long as the app starts and stop when you stop the stop button. In the attachments…
Do2
  • 1,751
  • 1
  • 16
  • 28
1
vote
1 answer

How do i fill part of a shape's color in PaintCode?

So i have this vector in for a rating system in PaintCode I would like to be able to fill the colors partially. Like this: Can this be accomplished in PaintCode?
Just a coder
  • 15,480
  • 16
  • 85
  • 138
1
vote
1 answer

When I zoom, I want to supply a new image to the image view from PaintCode at the correct zoom level

I have an image drawn using PaintCode. And that image has a Scale variable. on line marked "// A", I've edited the usual PaintCode generated code so that I can pass in a scale and have the image created at the correct height and width. public class…
Daniel R
  • 312
  • 1
  • 9
1
vote
2 answers

PaintCode, How to add a frame around a portion of a vector and have it dynamically resize?

I've imported a vector layer from a psd into paint code v1, I'm trying to create a background image and make it universal. I can't seem to add a frame around the vector, to complicate matters, I only need a portion, the center, of the layer. (The…
Jules
  • 7,568
  • 14
  • 102
  • 186
1
vote
2 answers

Accessing image from PaintCode in Swift

I'm thinking about buying PaintCode, because I wanna use it in my Swift projects. I downloaded the Trial version. The tutorials at the homepage are only for Objective C, but the explained way (http://www.paintcodeapp.com/documentation/stylekits)…
Lupurus
  • 3,618
  • 2
  • 29
  • 59
1
vote
1 answer

Autosize Text in Label for PaintCode CGContext

I'm using the following to draw text inside a Bezier Path. How can i adjust this to allow the text to autosize. EDIT I was able to update to iOS7 methods but still nothing. I can autosize text within a UILabel fine, but because this is CGContext it…
DaynaJuliana
  • 1,144
  • 1
  • 14
  • 33
1
vote
2 answers

Changing content in UIView based on slider

I created a Gauge using AppCode. Depending on the input, the gauge arrow in the middle rotates. I want to use a slider in Swift to determine how much the arrow in the gauge should rotate. If I hard code the input the arrow rotates to the proper…
user3438980
  • 47
  • 1
  • 6
1
vote
1 answer

PaintCode 2 - Can't modify constraints?

I can't modify constraints using PaintCode 2. After selecting group or a single shape I am clicking on constraints I want to change but nothing happens. Anyone knows how to deal with it???
Janusz Chudzynski
  • 2,700
  • 3
  • 33
  • 46
1
vote
1 answer

Valid technique for scalable graphics on iOS?

A little background: I'm working on an iOS app that has a variety of status icons for various states. These icons are used in a variety of places and sizes including as UITableViewCell imageViews, as custom MKMapAnnotations and a few other spots. …
smyrgl
  • 864
  • 6
  • 12
1
vote
1 answer

Animating a bezier curve point

I'm trying to animate a bezier curve I made with Paintcode (great app, btw) and am drawing in a custom UIView in the "drawRect" method. The drawing works fine but I want to animate a single point in the bezier curve. Here's my non-working…
Felix Lapalme
  • 1,058
  • 1
  • 11
  • 25
1
vote
1 answer

One additional slider appear when Inheriting from UISlider

I recently purchased paintcode. I used this to create a slider. In Xcode, when I, In my storyboard create an empty view and set it to a class Slider.m where my slider code is, and run this app, this happens: My drawing code is inside…
Nilzone-
  • 2,766
  • 6
  • 35
  • 71
0
votes
0 answers

Make oval NavigationBar

I want to NavigationBar with an increased height of 16-20, and an oval design at the bottom of the navigation bar, I have designed it on paint code and created a UIBezierPath, tried to add it on navigation bar but the result is not so good, Paint…
0
votes
1 answer

Add highlight effect to the UIButton that created by PaintCode code

I have made a button by using PaintCodes code: class AddIconView: OUIButton { override func draw(_ rect: CGRect) { AddIcon.draw(frame: rect) } } Then I add its class to a UIButton. The problem is, the button is not highlighted…
Rouzbeh
  • 39
  • 5
0
votes
1 answer

Add custom class to UIView in the UITableView

I have made some icon with the paint code app: class addIconView: UIView { override func draw(_ rect: CGRect) { TodayIcon.draw(frame: rect) } } I also add the configuration of the cells in another class: class OptionsTableCell { …
Rouzbeh
  • 39
  • 5