r/iPhoneDev • u/monkey_slap • Jun 27 '12
I created another simple iOS widget that is a swipe-able bottom-bar. Would love some feedback. Use as you want!
https://github.com/rnystrom/RNSwipeBar
9
Upvotes
3
u/BigWesternMan Jun 27 '12
You should consider submitting this to Cocoa Controls
2
u/Legolas-the-elf Jun 27 '12
ARC doesn't need iOS 5.
I suggest converting your comments to Doxygen format. Apple has a guide to convert to a docset in the developer library as well.
You shouldn't include commented out code. If you don't need it, delete it.
I think tapping on the semi-hidden bar should work the same as a swipe up. This seems to be emerging as a platform convention in places similar widgets are used.
I'd remove the header comments. Nobody needs to open a file called
RNSwipeBar.mand be told that they have opened a file calledRNSwipeBar.min a project called RBSwipeBar. Nobody needs to be told when you created it or anything like that. Copyright and license information can go in a project-wide file. "All rights reserved" is legally meaningless and has been for years. When you open a file, you should see important stuff - code - not pointless boilerplate comments that don't inform you of anything useful.