Giter Club home page Giter Club logo

Comments (11)

rnystrom avatar rnystrom commented on July 18, 2024 2

Current:

img_4535 png

from githawk.

rnystrom avatar rnystrom commented on July 18, 2024 2

I bet other repos would just complicate things, I envision:

  • Regex to find [ ], etc
  • Replace w/ emoji depending on if viewer can edit
  • Add custom attributes like I do for links
  • On tap, detect custom attribute and vend delegate event like this

from githawk.

Sherlouk avatar Sherlouk commented on July 18, 2024 2

Bit shit but with a large font size:

☑︎☒☐

from githawk.

Sherlouk avatar Sherlouk commented on July 18, 2024 1
  • Read Only Visual (See an actual check box, but disabled so can't toggle it's state)
  • Write Mode (Check box can be tapped to toggle state)
  • Reordering

I see three stages that need to be done, and only the first can be done for now
Sometimes wish iOS has a checkbox control

from githawk.

dkhamsing avatar dkhamsing commented on July 18, 2024 1

https://github.com/dzenbot/Iconic :)

from githawk.

shaps80 avatar shaps80 commented on July 18, 2024 1

You could use a subclassed NSTextAttachment in the NSAttributedString. With a little bit of code, its possible to allow any arbitrary UIView.

That way you can still keep the string, but create a custom view easily.
(or even use a UISwitch or whatever makes sense)

Out of the box, only image attachments are supported, but if you google a little you'll find simple examples for how to achieve this. No need to import a 3rd party lib.

EDIT: Quick note, your custom attachment would NOT participate in selections, i.e. copied text will not include the attachment. You could obviously get around this by overriding the copy command and putting back the original [x] if you wanted. Currently however the app doesn't support this behaviour anyway.

from githawk.

BasThomas avatar BasThomas commented on July 18, 2024

Luckily, there's OSS ☺️

https://github.com/Boris-Em/BEMCheckBox
https://github.com/Marxon13/M13Checkbox

from githawk.

BasThomas avatar BasThomas commented on July 18, 2024

Oh, didn't think of emoji. Nice one! Is there an emoji for an empty checkbox though? I can't find one.

from githawk.

rnystrom avatar rnystrom commented on July 18, 2024

Ha, I figured there was, but maybe not 😞

This would be lame, but maybe ⬜️ ?

Otherwise we'll have to do text location finding, could be a huge PITA 😬

from githawk.

dzenbot avatar dzenbot commented on July 18, 2024

What about icon fonts?

from githawk.

rnystrom avatar rnystrom commented on July 18, 2024

Closing as this is working, filing a new issue for interactivity

from githawk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.