Comments (11)
Current:
from githawk.
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.
Bit shit but with a large font size:
☑︎☒☐
from githawk.
- 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.
https://github.com/dzenbot/Iconic :)
from githawk.
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.
Luckily, there's OSS
https://github.com/Boris-Em/BEMCheckBox
https://github.com/Marxon13/M13Checkbox
from githawk.
Oh, didn't think of emoji. Nice one! Is there an emoji for an empty checkbox though? I can't find one.
from githawk.
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.
What about icon fonts?
from githawk.
Closing as this is working, filing a new issue for interactivity
from githawk.
Related Issues (20)
- Report
- Rdzsxxd ddded
- Data in incorrect format Error
- Discussion Notifications
- Issue
- BambooSkech HOT 1
- vc HOT 1
- Májová 260 HOT 1
- How to view project board
- Daniel Ferencz
- import SwiftUI
- Czech Republic
- bug
- Cannot send Flow Mod Packet in OpenFlow-ryu HOT 1
- API errors with app HOT 6
- pull
- Weird riot files kernel applications and some weird certifications that I can’t change HOT 1
- Ja oooo
- First_Git HOT 1
- API Status "error" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from githawk.