How to use Auto Layout for beginners in Swift - iOS 2023

Sdílet
Vložit
  • čas přidán 3. 02. 2020
  • 💻 Source Code: / iosacademy
    🎥 Subscribe for more: czcams.com/users/iOSAcademy?su...
    😎 Like my teaching style? Check out some of my most popular courses: courses.iosacademy.io
    👉🏼 Connect (personal LinkedIn) / afrazsiddiqui
    🚀 Follow on LinkedIn / ios-academy
    iOS Academy offers the #1 course for iOS Development for Beginners. Learn to create iPhone and iPad apps from scratch. Everyone these days has an app idea; learn the important skill of making those apps, make yourself more marketable, change industries to get a different job, and enjoy the ride!
    Like my teaching style? Learn to build the TikTok iOS App with my recent course! ios-academy.teachable.com/p/b...
    This video is brought to you by Skillshare - an only community of teachers sharing awesome skills. Use the following link to get 2 months of FREE premium: www.skillshare.com/r/user/afraz

Komentáře • 85

  • @iOSAcademy
    @iOSAcademy  Před 2 lety +1

    Into iOS? Lets connect! linkedin.com/in/afrazsiddiqui

  • @user-gn1jr3ju1t
    @user-gn1jr3ju1t Před 3 lety +23

    But what when UI becomes more and more complex?
    I understand how to manage auto layout with single square on the screen, but can't wrap my head around how to be efficient with complex UI, with bunch of labels, images and buttons covering whole screen?
    Can you make some tutorial where you can show us how to handle those more complex situations?
    Thanks in advance!

  • @FirstForty1
    @FirstForty1 Před 3 lety +6

    Much more clear than the other class Im taking. Ill look for more from you

  • @Kevin_Zed
    @Kevin_Zed Před 3 lety

    Thanks for this video yesterday I was struggling but I think I have an idea of what I need to do now.

  • @sankharr
    @sankharr Před 3 lety

    Well Explained. Thank you!

  • @chaoliu
    @chaoliu Před rokem

    Thank you! You make it much easier to understand.

  • @ameerkhanpathan6598
    @ameerkhanpathan6598 Před rokem

    Very helpful for me,your videos are very very helpful.basically I am mechanical engineer but now I move to IT field and I learning things alone with the help of CZcams and other stuf and I find your CZcams channel and it's great to understand things easily..

  • @abdulbasir8740
    @abdulbasir8740 Před 2 lety

    helpful tutorial, thank you, understood why constraints are important

  • @donl6605
    @donl6605 Před 2 lety

    How would the constraints work when drawing a line or a bezier curve on the view. Would the xy co-ordinates of the line/curve differ with each different device?

  • @handmadesoftware
    @handmadesoftware Před 2 lety +2

    Perfect tutorial, just in a right place and in a right time, thank you !

  • @user-ry2hk8rj6y
    @user-ry2hk8rj6y Před 4 lety +1

    Thanks so much for this lesson!

  • @AJ.313.j
    @AJ.313.j Před 2 lety +1

    Best video on youtube for beginners.

  • @syedarmaghanhassan4652

    Thanks... Great ! Thanks for sharing...

  • @mmr-saad9856
    @mmr-saad9856 Před 2 lety +2

    superb. I had an allergy to auto-layout. but by seeing this video, I fall in love with auto-layout. Simple and easy. Very good job buddy.

  • @kevintoner6068
    @kevintoner6068 Před 4 lety

    Thanks man,
    Awesome video. Extremely helpful.

    • @iOSAcademy
      @iOSAcademy  Před 4 lety +1

      Thanks! Glad I can help. Make sure to subscribe and like for more

  • @hanzalamemon6325
    @hanzalamemon6325 Před 3 lety

    If I setup one as background, I make it a distance of “0” from view, and when I run it on iPad, it’s comes very slim. Definitely not as a wallpaper. I’m struggling. But thanks for the video :)

  • @jackson4524
    @jackson4524 Před 4 lety +1

    Thanks this helped so much i was struggling with it

  • @user-yd9xy3rb4x
    @user-yd9xy3rb4x Před 2 lety

    I am wondering how to launch few storyboards on the same screen on different devices at a time, to see how layouts behave.

  • @AdailtonSilvaSP
    @AdailtonSilvaSP Před 3 lety +1

    Thank you for this video. It helped me a alot!

  • @abdullahalnutayfi8103
    @abdullahalnutayfi8103 Před 2 lety +1

    Hi, do you have sources for building the interface by code so I can delete storyboard?

  • @bunnyrabits
    @bunnyrabits Před 3 lety +1

    your videos are just awesome, thanks a ton !

  • @fibowibo5359
    @fibowibo5359 Před 3 lety +1

    cool video, straight forward and clear!

  • @nawafb6280
    @nawafb6280 Před 3 lety

    I am struggling Really thank you

  • @Jeff-lc2xd
    @Jeff-lc2xd Před 3 lety

    can you demonstrate autolayout constraints with percentage?

  • @tamadermed3028
    @tamadermed3028 Před 4 lety +1

    thank you you really helped me

    • @iOSAcademy
      @iOSAcademy  Před 4 lety

      Your welcome! Make sure to subscribe for more

  • @robertramirez8142
    @robertramirez8142 Před 3 lety +1

    I’m having issues sizing buttons and fonts for different devices both in storyboards and programmatically

  • @haroonazharkhan7976
    @haroonazharkhan7976 Před 3 lety +1

    really loved it

  • @flytexashomes5827
    @flytexashomes5827 Před rokem

    Your amazing 🤩 thanks

  • @tanmayagarwal1356
    @tanmayagarwal1356 Před 2 lety +1

    Great, Simple and very easy tutorial. U have earned one more subscriber!

  • @aviadsabag8193
    @aviadsabag8193 Před 3 lety +2

    hmm a question that kills me everytime, how do i know how much the distance ? i mean if i want it to be far away from the blue view but by little, how do i know the amount? :)

  • @hallvardlundehervig5508

    Great video! Continue with these videos, they are very helpful

    • @iOSAcademy
      @iOSAcademy  Před 4 lety +1

      thanks! Make sure to subscribe for more

    • @hallvardlundehervig5508
      @hallvardlundehervig5508 Před 4 lety

      @@iOSAcademy Yeah, I have done it. Btw do you have a tutorial on layout with textfields, buttons, labels etc?

  • @user-qz2uy4ug3h
    @user-qz2uy4ug3h Před 4 lety

    Thanks for the video! Relevant question: How can I adjust the layout for smaller screens? All iPhones have the same size class for vertical view - wC hR. I don't understand how to set a smaller font size or smaller constraints for tiny screens like iPhone 5s.

    • @iOSAcademy
      @iOSAcademy  Před 4 lety

      Youre welcome. To do that you need the content to expand or decrease in size to accommodate less apace - or use something like a scrollview

  • @gorgesalender1006
    @gorgesalender1006 Před 2 lety +1

    Thank you 😊

  • @maroung13
    @maroung13 Před 4 lety +2

    Thank you for sharing, but how can I fill all the screen with the imageview without the blank from the safe area?

    • @iOSAcademy
      @iOSAcademy  Před 4 lety

      Your welcome. For this, you can just disable the safe areas in the storyboard

  • @shreyan9088
    @shreyan9088 Před 2 lety +2

    Awesome

  • @hustlas4ever
    @hustlas4ever Před 4 lety

    Hi thank you for this. And what's the difference between auto-layout and auto-resizing?

    • @iOSAcademy
      @iOSAcademy  Před 4 lety

      You're welcome! Make sure to sub! The difference is one refers to the actual layout where the other refers to dynamic ability to resize the laid out view

  • @edward.narvaez
    @edward.narvaez Před 3 lety +1

    Tx bro

  • @ahmadkhattab5700
    @ahmadkhattab5700 Před 3 lety +1

    Thank u

  • @flamyoad
    @flamyoad Před 2 lety +1

    Very useful video :)) Kudos to the video creator. Can't believe I need to lookup the a tutorial just to understand how to use AutoLayout properly (I am familiar with Android's ConstraintLayout which is similar to this). Guess Xcode needs to step up their UX & interface

  • @johnkim2665
    @johnkim2665 Před 4 lety

    Is there a specific way you're supposed to layout label objects or no? When I tried doing it for the labels, each time I previewed them on something like an iPhone 11 then previewing it on an iPhone 8, it would move them around? Or am I just doing something wrong?

    • @iOSAcademy
      @iOSAcademy  Před 4 lety

      Things just need to be constrained. Can you define "move around". The expectation is that things will get moved bc smaller screens have less space

  • @hamzaalaudi1184
    @hamzaalaudi1184 Před 3 lety +1

    as always, very clear. Thank You very much. Subscribed!:)

  • @YashSharma-xd5rg
    @YashSharma-xd5rg Před 3 lety +6

    simple as it gets. Simple is nice..

  • @danialothman
    @danialothman Před 2 lety +1

    doesn't matter if you can code swift or obj-c if you can't freaking get this down! thank you so much!

  • @sergiocaplan1168
    @sergiocaplan1168 Před 3 lety

    How about being able to detect safeArea layouts in Xcode only?

    • @iOSAcademy
      @iOSAcademy  Před 3 lety

      Each view has a safeAreaInsets property

  • @moniquewrites9046
    @moniquewrites9046 Před 2 lety

    Can someone please help
    I have 11.3 Xcode and it doesn’t let me place constraints!!!!

  • @abdessamedben4090
    @abdessamedben4090 Před 3 lety

    how to align a view to the bottom of safe area?

    • @iOSAcademy
      @iOSAcademy  Před 3 lety

      Pin to the bottom and set an appropriate height that you need

  • @codeindia4204
    @codeindia4204 Před 3 lety +1

    Great tutorial
    #CodeWithMonika

  • @nurettindegismen5671
    @nurettindegismen5671 Před rokem

    Zoom in - zoom out.We are not blind!

  • @tibettenballs4962
    @tibettenballs4962 Před rokem

    i was a boy!
    and i got my peter pulled!
    as a child!
    AS A LITTLE BABY BOY!

  • @mujtubaamin360
    @mujtubaamin360 Před 2 lety

    Very painful to see zoom in and zoom out so repetitively.

  • @youssh4975
    @youssh4975 Před 3 lety

    ugh, i hate this

    • @iOSAcademy
      @iOSAcademy  Před 3 lety

      Video or auto layout?

    • @youssh4975
      @youssh4975 Před 3 lety

      @@iOSAcademysorry i meant autolayout, video was useful thanks