The one trick every iOS developer should know for working with Stack Views

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 22

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

    This is absolutely fantastic trick, I am a beginner developer and have been using storyboards and stackviews. Definitely very useful! thanks for the video.

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

    This has been a live saver. I am using programatically UI and was eating my head figuring out where I am doing wrong. Finally fixed it. Thanks a lot

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

    Thank you so much, I just had the same problem. For some reason if say a vertical stackview has verical and horizontal intrinsic content sizes it will break even if setting it as lessthanequal to its container. Setting the priority to anything less than required removes the conflict and also applies it.
    I guess USV has some default constraints @ 1000 which create a temporal conflict at compile time but gets fixed at run time, either way it's better to avoid ambiguity. Thanks again!

  • @vikas_.
    @vikas_. 3 роки тому

    I learnt something new. I was literally getting these error when ever i do a UI implementation

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

      You are very welcome Sinamsetty. Thanks for stopping by.

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

    Hi Jonathan,
    Is there a way I can contact you relating to a consulting opportunity?
    Thank you,
    Tyler

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

      Hi Tyler - I am pretty busy at the moment. But if you are still interested around March in the new year drop me a new and we can chat. Cheers.

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

      @@swiftarcade7632 Jonathan, thanks so much for the reply! *and no problem on your availability for next year. Would you open to 15 minutes this week for a chat? (Again, I understand you’d be aiming for next year). Thank you, Tyler

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

    How would you do this programmatically?!

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

      You would create an extension like this and set the priority on the constraint to be something less than 1000.
      public extension NSLayoutConstraint {
      @objc public func setActiveBreakable(priority: UILayoutPriority = UILayoutPriority(900)) {
      self.priority = priority
      isActive = true
      }
      }

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

    Thanks for this neat trick !

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

    Great! and pls less music, u have nice diction, so no need for background sound)

  • @ЯрославГрицунь
    @ЯрославГрицунь 3 роки тому

    Useful nugget, thanks

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

    1. Please, record only the xcode window, not the all desktop. 2. The mouse pointer would be easier to follow (visually), if it will be highlighted. Also, would be a very nice to highlight the mouse clicking.