Performance between LazyVStack, VStack and List

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024

Комментарии • 25

  • @Kevin_Zed
    @Kevin_Zed Год назад

    I found this very helpful. You asnwered my concerns and provided even more helpful knowledge that I wasn't aware of.

  • @ColeDano
    @ColeDano 3 года назад +1

    Great explanation, seeing the memory usage really made it clear.

    • @swiftandtips
      @swiftandtips  3 года назад

      Thank you @Cole! I found that example accidentally and it was great 😆

  • @isurujn
    @isurujn 8 месяцев назад

    Thanks for this. Really helped me make the decision on what to use when.

  • @sipanhazim4128
    @sipanhazim4128 3 года назад

    I am using VStack in my projects and always wondered why performance is heavy and slow ..Thank you !!!!

    • @swiftandtips
      @swiftandtips  3 года назад

      I’m glad to read this was useful for you @Sipan! ☺️

  • @yeshadithya
    @yeshadithya 3 года назад

    This one is great lessons for me when developing app without using extra memory usages and thank you for your valuable lesson❤

    • @swiftandtips
      @swiftandtips  3 года назад +1

      I’m glad the video was useful for you 😄
      Thank you @Yesh!

  • @trevormills
    @trevormills 2 года назад

    Excellent explanation. So clear and easy to understand - Thank you.

  • @xalizalizx
    @xalizalizx 4 месяца назад +1

    Is there a reference/proof that List "reuse" cells? I tried to find, although some StackOverflow answers says it is, there's no official reference on this behavior. So just wondering if you have more info on this :).

    • @swiftandtips
      @swiftandtips  4 месяца назад

      That’s a default behavior since UIKit to save memory.
      developer.apple.com/documentation/uikit/uitableviewcell/1623223-prepareforreuse

    • @xalizalizx
      @xalizalizx 4 месяца назад

      @@swiftandtips Yes, I’m aware prepareForReuse() exists. But how do you know SwiftUI List uses it?

  • @leandroandrade8490
    @leandroandrade8490 Год назад +1

    Maybe use List is not a problem when e.g. fetch data from external API using pagination. Thanks for your explanation.

  • @freakpunker
    @freakpunker 2 года назад

    Excellent video! 👍🏻

  • @protaotogamer1503
    @protaotogamer1503 3 года назад

    As usual epic video

    • @swiftandtips
      @swiftandtips  3 года назад +1

      Thank you @Protaotogamer 🙌🏼

  • @MohammadRaziPour
    @MohammadRaziPour 2 года назад

    Thanks, great

  • @natureloverspakistan
    @natureloverspakistan 3 года назад

    I have lazyVStack reviews list . But when I scroll , in review Row .. rating stars are getting hide by self

    • @swiftandtips
      @swiftandtips  3 года назад +1

      Hi @NatureLovers, not sure if I follow your comment. What is your approach? Could you share a piece of code?

    • @natureloverspakistan
      @natureloverspakistan 3 года назад

      @@swiftandtips sure I will share it

  • @pe60t0
    @pe60t0 2 года назад +1

    b stack renders biews in bertical order