Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drawing on images? #18

Open
plaetzchen opened this issue Aug 5, 2016 · 14 comments
Open

Drawing on images? #18

plaetzchen opened this issue Aug 5, 2016 · 14 comments

Comments

@plaetzchen
Copy link

Is there any best practice on how to draw on a user provided image using jot?

@HackShitUp
Copy link

Bump. I'm having a few issues with the drawing state as well. It appears as though the lines that are being drawn aren't entirely smooth...

@DavidLari
Copy link

It appears jot is no longer supported by IFTTT. The dev has apparently left the company and they intend to mark it deprecated.

@HackShitUp
Copy link

Damn that sucks. I'm going to have to remove this from Cocoapods. Does anyone know any similar frameworks?

@DavidLari
Copy link

I have been looking for one, but I'm specifically trying to find a Swift one. Not sure if there are some Objective C ones.

@HackShitUp
Copy link

@DavidLari Me too. On that note, would you be down to build one with me? I've been developing in Swift for about 2 years now, but I've never built a framework, and I think this would be a great opportunity for me to advance haha

@DavidLari
Copy link

Sure. I'll help.

@annjawn
Copy link

annjawn commented Nov 28, 2017

NXDrawKit is the closest one that is out there. Still supported by the Dev and works for iOS 11 and Swift 4.

@HackShitUp
Copy link

HackShitUp commented Nov 29, 2017

@DavidLari @annjawn @plaetzchen
When I was looking for alternative frameworks for JOT, I was looking for something that would enable users to overlay text on their images. But I couldn't find any at the time, so I went ahead and built my own. It's a UIView (with XIB) that has a UITextView as a subview. It overlays on the parent view as opposed to drawing an image over it for better management (I also have users overlay text on their videos). Here's the source code to them:

https://drive.google.com/open?id=1sqvF3ywrF2xgPxuwkRsyLWAYzLVMTb8d

Note: You need to connect the following outlets in storyboard:

    @IBOutlet weak var textView: UITextView!

And to use it in your class, just drag and drop a UIView, declare that class as a subclass of CSCaptionview, and you'll be good to go. The UIView's UIGestureRecognizers are internally configured, and whenever you hit the return key in the UITextView, it adds it to the super view. Make sure to set the auto layout constraints in the UIViewController class that uses it.

I use it for my application here: http://www.capsule.li/download
Here's the direct URL to the App Store: https://itunes.apple.com/us/app/capsule-preserving-memories/id1279632709?ls=1&mt=8

(Shameless advertising.)

@HackShitUp
Copy link

For some reason, the Google Drive URL doesn't work. Here's a redirect with the one that works:

https://drive.google.com/drive/folders/1zQSMYkSmRM9R2LXrMioXkU9S2oynTXrJ?usp=sharing

@annjawn
Copy link

annjawn commented Nov 29, 2017

Very cool. I might take the overlay Text part from your code. I am already using NXDrawKit in my app and I have customized it for my use and it's working well, but it's missing the text overlay feature. I am in the middle of my App's beta testing and I plan to release it before christmas but I think I will push this feature in the next update.

@HackShitUp
Copy link

@annjawn Cool cool, let me know when it's out!

@DavidLari
Copy link

I've got a library in beta called SwiftyJot. It doesn't have the text features of jot, but it has finger drawing. https://github.com/DavidLari/SwiftyJot

@HackShitUp
Copy link

@DavidLari is there a way to overlay the drawing on a regular uiview and not a uiimageview?

@DavidLari
Copy link

@HackShitUp The code as it currently stands, doesn't support that, but since I'm adding a layer to draw on anyway, it would be pretty easy to modify it to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants