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

Поділитися
Вставка
  • Опубліковано 22 сер 2024
  • 💻 Source Code: / iosacademy
    🎥 Subscribe for more: www.youtube.co...
    😎 Like my teaching style? Check out some of my most popular courses: courses.iosaca...
    👉🏼 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.te...
    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...

КОМЕНТАРІ • 85

  • @iOSAcademy
    @iOSAcademy  2 роки тому +1

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

  • @user-gn1jr3ju1t
    @user-gn1jr3ju1t 4 роки тому +24

    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 3 роки тому +6

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

  • @mmr-saad9856
    @mmr-saad9856 3 роки тому +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.

  • @handmadesoftware
    @handmadesoftware 2 роки тому +2

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

  • @AJ.313.j
    @AJ.313.j 3 роки тому +1

    Best video on youtube for beginners.

  • @gorgesalender1006
    @gorgesalender1006 2 роки тому +1

    Thank you 😊

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

    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 UA-cam and other stuf and I find your UA-cam channel and it's great to understand things easily..

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

    Thank you! You make it much easier to understand.

  • @bunnyrabits
    @bunnyrabits 3 роки тому +1

    your videos are just awesome, thanks a ton !

  • @tanmayagarwal1356
    @tanmayagarwal1356 2 роки тому +1

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

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

    Your amazing 🤩 thanks

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

    helpful tutorial, thank you, understood why constraints are important

  • @shreyan9088
    @shreyan9088 3 роки тому +2

    Awesome

  • @danialothman
    @danialothman 3 роки тому +1

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

  • @ahmadkhattab5700
    @ahmadkhattab5700 3 роки тому +1

    Thank u

  • @YashSharma-xd5rg
    @YashSharma-xd5rg 3 роки тому +6

    simple as it gets. Simple is nice..

  • @AdailtonSilvaSP
    @AdailtonSilvaSP 3 роки тому +1

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

  • @abdullahalnutayfi8103
    @abdullahalnutayfi8103 2 роки тому +1

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

  • @fibowibo5359
    @fibowibo5359 3 роки тому +1

    cool video, straight forward and clear!

  • @flamyoad
    @flamyoad 2 роки тому +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

  • @Opppoool
    @Opppoool 4 роки тому +1

    thank you you really helped me

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

      Your welcome! Make sure to subscribe for more

  • @Kevin_Zed
    @Kevin_Zed 3 роки тому

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

  • @aviadsabag8193
    @aviadsabag8193 4 роки тому +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? :)

  • @user-ry2hk8rj6y
    @user-ry2hk8rj6y 4 роки тому +1

    Thanks so much for this lesson!

  • @haroonazharkhan7976
    @haroonazharkhan7976 4 роки тому +1

    really loved it

  • @jackson4524
    @jackson4524 4 роки тому +1

    Thanks this helped so much i was struggling with it

  • @edward.narvaez
    @edward.narvaez 3 роки тому +1

    Tx bro

  • @robertramirez8142
    @robertramirez8142 3 роки тому +1

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

  • @sankharr
    @sankharr 3 роки тому

    Well Explained. Thank you!

  • @maroung13
    @maroung13 4 роки тому +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  4 роки тому

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

  • @user-yd9xy3rb4x
    @user-yd9xy3rb4x 3 роки тому

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

  • @syedarmaghanhassan4652
    @syedarmaghanhassan4652 3 роки тому

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

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

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

    • @iOSAcademy
      @iOSAcademy  4 роки тому +1

      thanks! Make sure to subscribe for more

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

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

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

    I am struggling Really thank you

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

    Thanks man,
    Awesome video. Extremely helpful.

    • @iOSAcademy
      @iOSAcademy  4 роки тому +1

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

  • @codeindia4204
    @codeindia4204 3 роки тому +1

    Great tutorial
    #CodeWithMonika

  • @hanzalamemon6325
    @hanzalamemon6325 3 роки тому

    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 :)

  • @moniquewrites9046
    @moniquewrites9046 3 роки тому

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

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

    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?

  • @hamzaalaudi1184
    @hamzaalaudi1184 3 роки тому +1

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

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

    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  4 роки тому

      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

  • @Jeff-lc2xd
    @Jeff-lc2xd 3 роки тому

    can you demonstrate autolayout constraints with percentage?

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

    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  4 роки тому

      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

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

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

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

      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

  • @abdessamedben4090
    @abdessamedben4090 3 роки тому

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

    • @iOSAcademy
      @iOSAcademy  3 роки тому

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

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

    Zoom in - zoom out.We are not blind!

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

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

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

      Each view has a safeAreaInsets property

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

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

  • @mujtubaamin360
    @mujtubaamin360 3 роки тому

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

  • @youssh4975
    @youssh4975 3 роки тому

    ugh, i hate this

    • @iOSAcademy
      @iOSAcademy  3 роки тому

      Video or auto layout?

    • @youssh4975
      @youssh4975 3 роки тому

      @@iOSAcademysorry i meant autolayout, video was useful thanks