GithubHelp home page GithubHelp logo

Create a Sample App about snapkit HOT 8 CLOSED

omidkh68 avatar omidkh68 commented on May 3, 2024
Create a Sample App

from snapkit.

Comments (8)

stormhouse avatar stormhouse commented on May 3, 2024

firefox-ios https://github.com/mozilla/firefox-ios

from snapkit.

robertjpayne avatar robertjpayne commented on May 3, 2024

@omidkh68 @stormhouse there's not an example app yet, your best bet is to look at some of the tests or just play around along with the readme.

It may help to look at Masonry examples too as Snap is a port of it.

from snapkit.

omidkh68 avatar omidkh68 commented on May 3, 2024

@robertjpayne tnx man

from snapkit.

mwawrusch avatar mwawrusch commented on May 3, 2024

I know it's a bit of work, but it would be so much more useful if you would provide use cases (with a picture) and corresponding code. The current docs are a tough read for people who aren't into autolayout every day -> me ;-)

from snapkit.

sahandnayebaziz avatar sahandnayebaziz commented on May 3, 2024

Hey guys. I saw this issue and, as a big fan, thought it'd be fun to contribute. I spent a little time on an app we could use to teach people how to use SnapKit and show off great use cases. Not to worry, no pressure to use this, I don't know if you've all already started on something. Just wanted to throw it out there. You can see it here, I just gave it a quick name of SnapKit Samples.

I tried to keep a couple of qualities in mind, namely that the sample app would be...

  • somewhat easy to browse as a reference
  • somewhat easy to contribute to

The way it's hooked up now is a simple tableView that's listing out objects of a small type called 'Sample'. To contribute a sample, somebody would have to add a 'Sample' struct to the 'SampleLibrary' file and add a viewController that shows off the hands-on SnapKit use case they want to demonstrate.

I figure everyone must use SnapKit in their own special way, so I'm hoping this structure of each individual sample in the sample app will encourage someone to contribute another when they get excited about what they're doing with SnapKit.

I've put a couple basic samples in there. The code for each example is broken down and commented the way I'd explain it to somebody who was new to SnapKit and doesn't use AutoLayout all the time.

It was fun to make and I hope it gives you some ideas. Cheers.

from snapkit.

neelamsharma12 avatar neelamsharma12 commented on May 3, 2024

I have created one sample application of SnapKit using Cocoapods. please have a look. Here is the link:
#180

from snapkit.

migore avatar migore commented on May 3, 2024

@sahandnayebaziz Your sample was very useful to me. Thanks!

To whoever might be searching for samples, this project was also helpful.

from snapkit.

robertjpayne avatar robertjpayne commented on May 3, 2024

This is done! Thanks to #201 whoop!

from snapkit.

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.