e7711bbear / atsketchkit Goto Github PK
View Code? Open in Web Editor NEWiOS Drawing Framework written in Swift
License: MIT License
iOS Drawing Framework written in Swift
License: MIT License
Paint brushes with different patterns.
At this point, it does not recognize well enough,
The template system is far from optimal,
And on some cases, it crashes if too many points are tested.
I have a pdf that renders in a view. My goal is to get ATSketchkit on the top layer of the view so a user can add notes to the pdf then download it later... anyone have any advise on how to target a sub-layer? in my case the top most layer of a uiview?
Good day sir. I am a graphic designer and i am interested in designing a logo for your good project. I will be doing it as a gift for free. I just need your permission first before I begin my design. Hoping for your positive feedback. Thanks
I get fatal error:use of unimplemented initializer 'init(layer:)' for class ATSketchkit.ATSketchTopLayer
• Add finger gestures
• Add infinite canvas
Hello
In the swift 3 update, you have commented out the template part and gesture recognizer delegate method are not implemented. Can you please share the code for gesture recognizing and overriding the recognized path drawing. I saw the youtube video where you showed that output.
Perhaps my XCode newbe is showing today but i see the ATSketchKit directory with all the swift files in it. I was wondering can someone tell me how to compile these files into a framework for use into my current project. Can't seem to get it figured out.
I need to add this to my project but don't know how to create a framework file... Why isn't this included in the github pkg? Just curious.
Could export UIBezierPath to SVG path?
The unistroke recognition gives different results depending on the device used.
It seems related to the resolution.
Check it out!
The Tools Enum:
`// MARK: - Properties
public enum Tools: Int {
case finger // Finger tool not implemented
case pencil
case highlighter
case smartPencil
case eraser
}`
The beginning of touches ended:
override public func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) { if self.currentTool == .finger { return } if self.currentTool == .highlighter { opacity = 0.5 } else { opacity = 1.0 } self.printTemplateSource(self.pointsBuffer)
Is there anyway to annotate this into pdfkit? like adding images, shape or even text?
I noticed the comment FIXME
in the resamplePath method. Instead of using the for-loop, I tried to use forEach on the points array, and it seems to work fine without any crash:
func resamplePath(pointsCount size: Int) -> [CGPoint] {
var newSample = [CGPoint]()
// for index in 0..<self.points.count {
// let computedIndex = (self.points.count - 1) * index / (size - 1)
// let newIndex = 0 < computedIndex ? computedIndex : 0
// let newPoint = self.points[newIndex]
// //FIXME: there is a bug here when the number of points are too big, the new index becomes way bigger than the points'count
// newSample.append(newPoint)
// }
// here uses forEach
self.points.forEach {
newSample.append($0)
}
return newSample
}
I get the Macho-O error when I try to archive the app, everything else works fine though, no matter what I try I couldn't resolve that, Kindly help, additionally I get this warning which I believe the cause for the error.
Thanks,
ld: warning: ignoring file /Users/dev/Documents/test/ATSketchKit.framework/ATSketchKit, file was built for arm64 which is not the architecture being linked (armv7): /Users/dev/Documents/test/ATSketchKit.framework/ATSketchKit
To prevent having an endless history which would take too much memory.
When the history count is reached, all layers under need to be merged somehow.
I need to connect the visual CALayer to a data model for a project I use which uses ATSketchKit.
I added pod 'ATSketchKit' to my pod file and it says "Unable too find a specification for 'ATSketchKit'"
Am I Missing something??
I have looked but can't seem to find a way to save the drawing and load it back in for later reuse.
Say i draw something, but instead of saving it as a UIImage i want to save each layer, and load them back in later, so i can erase or keep on drawing.
Tried extracting layer.sublayers and saving it and reloading everything, but it gets f*cked.
Have the line get thinner when going fast, larger when going slow.
Also eventually add an "inking" of the page when staying at the same position.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.