standardnotes / iOS-classic

iOS client - (Deprecated) - New version: https://github.com/standardnotes/mobile
167 stars 21 forks source link

Use checkboxes instead of switches for tag selection #47

Open moughxyz opened 7 years ago

moughxyz commented 7 years ago

Switches were used as a way to get something up faster. Checkboxes unfortunately are not offered natively in the iOS SDK. But I think now that we have a little more time we can make the experience better by changing to Mail.app like checkboxes.

UITableViewCell has accessory mode checkmark, but it doesn't have a circle behind it. Maybe we can just draw a circle.

The important thing is that we don't use any 3rd party libraries for this. Should be simple enough to implement from scratch.

img_0608

flowinho commented 7 years ago

Fairly easy. Create a custom UITableViewCell and toggle the checkmark on selection.

A circle by using UIView.layer.cornerRadius = view.bounds.width / 2 (i think its a smaller value but i only have my phone right now)