roberthein / TinyConstraints

Nothing but sugar.
MIT License
3.98k stars 202 forks source link

Documentation needs more examples. #74

Open mdaslamansari2008 opened 5 years ago

mdaslamansari2008 commented 5 years ago

The documentation is not covering all scenarios. It would be great if you can add more details with example codes

XOneto9 commented 5 years ago

I agree with @mdaslamansari2008. just to get the sample on the 'read me', very difficult to understand when and what I use the components.

roberthein commented 5 years ago

I also agree and started a re-write! šŸ¤˜

mdaslamansari2008 commented 5 years ago

Thank you. I found this solution better than other. And I see huge potential in this. So please write in details. Try to cover most of the scenarios and also what are the common errors expected and what sort solution can fix it. That will be great to make most out of it. Thanks once again.šŸ˜‡

roberthein commented 5 years ago

That's great input @mdaslamansari2008, Thank you. šŸ™

mattmassicotte commented 5 years ago

Hello @XOneto9 - I'm embarrassed to say I'm not sure what I did that you agree with :) Could you point me at whatever it is you are referencing so I can refresh my memory?

XOneto9 commented 5 years ago

@mattmassicotte OMG.. Iā€™m so sorry it is mistake to refers you, I think it is mistype on the writing my opinion :( Raaaaally soorrrrrry about that;;

mattmassicotte commented 5 years ago

@XOneto9 Oh, really don't worry about it! Mystery solved :)

tonemcd commented 5 years ago

Just some thoughts on what could be useful as documentation. I've come from SnapKit (too cumbersome) via Stevia (too many APIs - not easy to know which one to use) to TinyConstraints, and I managed to convert my simple App (3 ViewControllers, about 6 or so views in each) to using TinyConstraints in just over an hour, so I'm very impressed! The Example App is excellent and shows what can be done. I must admit though, it's a bit over my head at the moment.

The docs at the moment give a good overview of what is possible. I think what would be very helpful is recipes, here's two for example;

Thanks for a great framework, whilst writing this out, I realised that something I was wracking my brain with (collection of a image-label-button view into its own subclass of UIView to allow it to be used repeatedly) could be done using the 'stack' method, and so I implemented that - works very well! (I couldn't find it being used in the Example App though).

Hope this feedback is constructive to you.

rebeloper commented 5 years ago

If you're looking for an in depth video documentation here it is: https://www.youtube.com/watch?v=ucbaEkEJKrc&list=PL_csAAO9PQ8ZHY2VzOi7LJ80CtfAgCgHP