SnapKit Tutorial for Autolayout Constraints

Поділитися
Вставка
  • Опубліковано 15 лип 2024
  • Learn how to use SnapKit to easily create programmatic auto layout constraints. Instead of using NSLayoutConstraint, you'll use SnapKit's DSL to write short but powerful lines of code to declare your autolayout constraints. We will be doing this in a Swift Xcode project.
    We'll be installing SnapKit with the Cocoa Pod set up so if you missed the video on how to install and set up Cocoapods, check it out here:
    • CocoaPods Tutorial - H...
    Related Links:
    Get a customized roadmap for your app and start building it in 7 days:
    ⚡ codewithchris.com/actionplan
    GitHub Page
    github.com/SnapKit/SnapKit
    SnapKit Docs
    snapkit.io/docs/
    For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you'll find a community of like minded learners! Learning something new is always more fun with other people!
    UA-cam: / codewithchris
    Website: codewithchris.com
    CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift, Objective-C, Xcode and app building from my course and materials!
    Intro & Outro music
    "Heartbreaker" by Jahzzar (www.betterwithmusic.com/)

КОМЕНТАРІ • 27

  • @CodeWithChris
    @CodeWithChris  5 років тому

    QOTD ⚡Have you heard about Auto Layout, DSL, or SnapKit before?? Let me know below!👇 Kick start your own app with my free 7 Day App Action Plan ➡️ bit.ly/7dplan

    • @yourssolomon
      @yourssolomon 4 роки тому

      SnapKit from GitHub not working on Mac Os, why?

    • @yourssolomon
      @yourssolomon 4 роки тому

      here are the error feedbacks: Android: sync failed at 2019-09-21 08:48 with 1 error
      Gradle Sync Issues: (1 error)
      Failed to find Build Tools revision 27.0.3

  • @ericzero1621
    @ericzero1621 2 роки тому

    Liked this video, and after 7 years I'm watching 😀

    • @CodeWithChris
      @CodeWithChris  2 роки тому

      Haha, wow, welcome back, thank you so much! -Arthur

  • @polysign
    @polysign 8 років тому

    Thanks for this introduction to SnapKit. Will certainly come in handy in the future.

  • @djryanashton
    @djryanashton Рік тому

    Old video but super-useful to me now. Thanks. :)

  • @KingYeshua1234
    @KingYeshua1234 8 років тому +5

    Thanks Chris for these useful tuts. May God bless you!

    • @mrmaniac7770
      @mrmaniac7770 8 років тому +3

      +King Yeshua There is no god

  • @TheKaushal8686
    @TheKaushal8686 7 років тому

    thanks for suggesting this wonderful lib. will try it.

  • @indracahyadi4757
    @indracahyadi4757 7 років тому +1

    Thanks for this tutorial. Really help me a lot to start using this library!

  • @sarann.v.6118
    @sarann.v.6118 8 років тому

    super..i am hardly looking for someone like this

  • @nilshausig205
    @nilshausig205 7 років тому

    Although I've be using Masonry (for Obj-C) and SnapKit (for Swift) for some time, I didn't realize that I can chain properties. Thank you.

  • @wibrst
    @wibrst 6 років тому

    Good! Very Useful to Beginner!

  • @gabrielsoria3503
    @gabrielsoria3503 7 років тому

    Thanks man!!!

  • @sarahsandy98
    @sarahsandy98 8 років тому

    awesome~~~thanks for your share

  • @stevenolevin
    @stevenolevin 8 років тому

    Great videos! SwiftyDB please

  • @samwd5039
    @samwd5039 6 років тому +1

    thank you for this

  • @RahulGupta1981
    @RahulGupta1981 8 років тому +3

    can we have something for - SVGKit

  • @sagararora9401
    @sagararora9401 8 років тому

    my only concern is that now size classes exists is there a way to add constraints programatically for different screen sizes of the view controllers?

  • @josiahjots1376
    @josiahjots1376 6 років тому

    If I'm developing for macOS, do I still use 'platform :ios' or is it 'platform :macOS'? Thanks for the great tutorial!

  • @ALL_ONE_SUN
    @ALL_ONE_SUN Рік тому

    Should DEFINITELY do a video on making custom fully resizable vector (svg or similar) knobs and sliders WITHOUT slow crappy swiftui…thanks in advance!

    • @CodeWithChris
      @CodeWithChris  Рік тому

      ou can post tutorial recommendations here app.productstash.io/codewithchris#/ideas. - Pat

    • @ALL_ONE_SUN
      @ALL_ONE_SUN Рік тому

      @@CodeWithChris Ah, OK. Haven't seen ANY tutorials for making custom knobs in UIKit or SwiftUI on youtube though. So that seems like an easy way to get some views and subscribers.

  • @ALL_ONE_SUN
    @ALL_ONE_SUN Рік тому

    And to clarify “auto resizing mask” is a totally nonsensical phrase…the World’s computer graphics are based on adobe terminology and that phrase is illogical. Is it an autoresizing alpha channel mask?