I'm daihase. Sometimes as a engineer, I'm writing programs with Swift, Dart and Go.
I ❤
- Swift
- Go
- Flutter
- Node.js
- E-Mail: [email protected]
Sketch have a lot of basic functions to develop a drawing app for iPhone. Anyone can easily create drawing iOS Application.
License: MIT License
I'm daihase. Sometimes as a engineer, I'm writing programs with Swift, Dart and Go.
I ❤
Hello, thanks for this awesome library, is it possible to cut and copy a particular area and paste it at other location ?
Thank you for your work.
Please, consider to adopt for macOS.
Is you have your library support for android or do you have any other library like this for android?
I love this library. Thank you so much!
One more cool feature could be a pen-type that uses speed to determine the width to give it that hand drawn look.
I know this isn't directly related to the project, but is it possible to trigger cloning of what I'm drawing on one view to another?
Is may be useful in situations where you're trying to write something in bigger letters and it duplicates itself in smaller version.
Thank you :)
Hello a great new feature can be add text to a specific place (touched)
Hi daihase,
Thank you very much for such an awsome iOS library for drawing. i am using this in a real application for drawing. One requirement is to move/resize the elements that are currently drawn on sketchView.
Is this possible in this library ? if not, then can you please provide me some hints/guidelines on how i should proceed.
Thanks.
Thanks for the library as this library has almost all the features that I need. But I have to draw on image with zoom functionality enabled for the image for better editing experience.
Some issues I am facing:
Plz help as I am currently working on my project. Thanks.
Sorry, could you please tell me the reason why I put new public function inside SketchView class file, the SketchView will not load image (image will be white blank). Did I miss something? Thanks so much.
(in my sketchView)
public func checkPublic() {
}
(in my viewcontroller)
func setupCanvas() {
let url = URL(string: media.url)
let imageV = UIImageView()
imageV.sd_setImage(with: url, placeholderImage: nil, options: SDWebImageOptions.continueInBackground) { (image, error, cache, url) in
self.sketchView.loadImage(image: imageV.image!)
self.sketchView.drawTool = .pen
self.sketchView.lineWidth = 1.0
}
}
I need to resize the stamp on the screen so I have add gestures(pinch,pan) and a button to confirm when it completed to remove the gestures and get the location of its.
@objc func onAddStampConfirm(sender: UIButton!) {
//remove gesture
for subview in sketchView.subviews {
for recognizer in subview.gestureRecognizers ?? [] {
subview.removeGestureRecognizer(recognizer)
}
}
sketchView.drawTool = .stamp
self.sketchView.stampImage = imvStamp.image
let cgPoint = CGPoint.init(x: imvStamp.frame.origin.x, y: imvStamp.frame.origin.y)
self.sketchView.addStampComplete(position: cgPoint)
}
And in sketchView class, I've added this to regconize when add stamp complete
public func addStampComplete(position:CGPoint) {
currentTool = toolWithCurrentSettings()
guard let stampTool = currentTool as? StampTool else { return }
pathArray.add(stampTool)
stampTool.setStampImage(image: stampImage)
stampTool.setInitialPoint(position)
finishDrawing()
}
in touchbegan (case is StampTool) I let it blank.
Thanks
Originally posted by @longnh2604 in #2 (comment)
Hello
a great feature like air brush, is it possible
Thanks in advance
when i draw a line and then change the oriantation of the device line goes some where else when i clicked the sketchview how to solve that problem ?
hello, so i have a problem with SketchView, if i set lineWidth more than 75, when i draw more than 8 seconds continuously without touchup finger cpu is overload to 100%, it tested on different devices
I want to colour the drawing using pen tool .And if the shape boundary is closed while colouring ..the colour should not come out from the boundary.. The feature is exactly like the fillcolour thru paint bucket.. Is it possible here?
Does Sketch SDK support Privacy Manifest?
Quoted Apple official website
Important
Third-party SDKs need to provide their own privacy manifest files that record the types of data they collect. Your app’s privacy manifest file doesn’t need to cover data collected by third-party SDKs that your app links to.
Sketch SDK is not included in the SDKs that are subject to the privacy manifest and signature requirement, but if you are not using the required reason API, we would like to know if you have any plans to address this issue by stating that you are not using the required reason API (i.e., not including anything in the required reason API).
Sketch SDK は Privacy Manifestご対応される予定はありますでしょうか?
Apple公式(日本語): https://developer.apple.com/jp/support/third-party-SDK-requirements/
Sketch SDKはプライバシーマニフェストと署名必須の対象となるSDK には含まれておりませんが、required reason API 等を利用していないようであれば、利用してないことを記載 (何もrequired reason APIに含めない) していただく等の対応のご予定があるかお伺いしたく存じます。
Hi
Thanks for the great library. I am not able to draw something when I am zooming any image. If there is any solution. Please help me.
Thanks
First of all thanks for this great library. I have a query regarding the library.
I need to create a circle with an eraser. But touch delegates are not working with sketches.
This is not an issue this is an enhancement
Thanks for your library. When you have time, could you answer me the question - what is the influence of setting backgroundColor of some view to its draw(_ rect: CGRect)
function.
Thanks again.
On iPad, user's drawing is stretched when SketchView changes its bounds after device orientation is changed to landscape. Is there a way to avoid it?
Hello,
i am try to zoom image for color but i can't do that ,
plz share code of only image zoom for coloring in swift
Could you give option or suggest some way to scale/resize stamp when adding to the drawing screen.
Thanks so much.
Is there any way to increase the shadow area in the neon effect ?
hello, i have a problem at adding SketchView inside scroll view, at the moment when i draw it has a little freeze, and when i want do draw second time (add one more line) it clears all what i draw. and show in console CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable. and CGBitmapContextInfoCreate: unable to allocate 355155840 bytes for bitmap data. Someone does this ? like adding sketchView in scroll view, or how you done zoom with 2 fingers and move same with 2 fingers. Thank you
Hey there! Thanks for you awesome job!
I try to build an image editing app using your library. Got a question there: how can I save the image to the gallery after I loaded and edited it in the app?
I tried to somehow get a UIImage
object from the SketchView and then save it in a traditional way to the gallery using UIImageWriteToSavedPhotosAlbum
, but did not succeed. I don't see any method in SketchView AP for image saving either.
Thank you!
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.