Implementing a ScrollView in SwiftUI | Bootcamp #15

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

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

  • @Bob-hh5cp
    @Bob-hh5cp Год назад +7

    The intro music makes my day I swear to GOD

    • @rdr9999
      @rdr9999 6 дней назад

      The intro music makes me cringe 😆 but the lessons make it worth it. Thanks, Nick, for all of this.

  • @gibber1sh-c6w
    @gibber1sh-c6w Год назад +2

    Coming from web development, the way you add lazy loading in Swift is a bliss!!

  • @daltonbyrd1558
    @daltonbyrd1558 6 месяцев назад

    "I may have just had too much coffee" 😂. Thank you, you're the bomb Nick! i found your videos trying to get more information on some concepts a class I was in didn't quite cover. Now I'm going through each video in the series because you give so much more detail and information that i haven't seen anywhere else.

  • @macapple1544
    @macapple1544 3 года назад +27

    Hey Nick, I found your channel , I have been following your videos, I am a beginner in terms of swift UI , however your how to videos are giving me a lot of information that I could not find in other you tubers with similar approach, keeps this wonderful work up Nick, thank you so much for doing this in such a great way

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

      Hey... well I'm very glad you found my channel. I try to answer all comments personally so don't hesitate to leave a comment if you every get stuck or confused!

  • @leyfqq
    @leyfqq 28 дней назад +1

    Such a useful thing. Thank you for another great tutorial

  • @CMessineo
    @CMessineo 7 месяцев назад +1

    This was my favorite lesson so far. Modified it slightly using ZStack to display the Row and Column number on each rectangle and also changed the color of each rectangle based on row and column. Modified code is below if anyone is curious:
    ScrollView {
    LazyVStack {
    ForEach(0..

    • @SwiftfulThinking
      @SwiftfulThinking  7 месяцев назад +1

      I’m glad you pushed through those first few lessons! It only gets better from here 🤙

  • @anaptskialadze2862
    @anaptskialadze2862 Месяц назад

    Thanks Nick for an amazing content. You’re literally making my iOS journey way easier 🙏🤗

  • @bobbynwm
    @bobbynwm Год назад +2

    If we align the Vstack to .leading and add a line of text like a section, before the horizontal scrollview, the page gets really cool. Thanks Nick! All these clips are so nicely put together!

  • @AZMerf
    @AZMerf 3 года назад +4

    Keep going over the same concepts (e.g., opening the files, connecting, etc.). It’s super helpful to reinforce. Might also want to substitute shortcuts everyone once in a while.

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

      Yea, sorry about that. Although they are in order, I try to make each video independent so that viewers can jump in and start any video with a new file. I try to also build on each video with previous topics so that you can get more comfortable with some of the previously covered material.... Anyway, I will try to give some hints when I repeat some set up information for people following along :)

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

    I drank way too much coffee.
    Great set of training videos, nick. Really enjoying them.

  • @dugrut1325
    @dugrut1325 2 года назад +2

    YES: supper cool...this is amazing, NOW to put it to practical use. loading data into each field???

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

    Lazy stacks are just awesome⚡

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

    OMG, Nick, thank you providing such great content, you are amazing, and that's really fun of learning the ScrolVview tool, wonderful, so cool so good, love it.

  • @keshavkumar1522
    @keshavkumar1522 2 года назад +2

    Hey Nick. Kudos to you man!! You are doing amazing job. I have one doubt in this video. When we make HStack or VStack as lazy, will it reuse the same views like in tableviews and collection views? or it will create a new view. What if we don't make the stack lazy and will it reuse or create an individual views for all index?

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

    Bought you 3 coffees cause your the best teacher! Keep up the good work…..bob

  • @withpz
    @withpz 3 года назад +2

    Awesome tutorials Nick!

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

    Nick , Thank you very much for a very helpful explanation for us

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

    The best channel! I’m learning a lot here. Thank you very much!

  • @AshvinGargav-w9o
    @AshvinGargav-w9o 8 месяцев назад

    Lazy keyword is awesome !

  • @DannyBoy443
    @DannyBoy443 5 месяцев назад

    Nah man, unless it's post 4PM, always a chance for good coffee lol. Especially when coding apps.

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

    This keep motivating giving me new hope. I love it

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

    thanks again Nick your the absolute goat!

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

    Hey man! I'm new here, and I love your videos!
    I started from the beginning, and I'm here now after 2 days. I want you to know how much you're helping me...
    Thank you!

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

    Hi Nick,
    Love your teaching style. Thank you for all the videos!
    I’m really struggling to add lists to scroll views in SwiftUI. Essentially, we have to give the list a height because by default it doesn’t show. Given each list item could have a different height and the number of items is the list can change, this appears impossible to figure out.
    Can you make some suggestions or do a video on this please ?
    🙏🏼

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

    Thank you Nick...

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

    Thank you from France Nick 🇫🇷

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

    Nick on coffee = Good

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

    Hey nick, Thank you so much for all these videos, I just have one question. How does swiftUI manage dequeue in ForEach?

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

    Hello Nick, you explain each concept really well, I appreciate that. I was working with UIKit past 4 months (I'm still learning and creating portfolio projects). I am familiar with Flutter and worked on a project and liked SwiftUI compared to the UIKit. I want to know your thoughts about will companies switch from UIKit to SwiftUI in the next 3 years or less?

    • @SwiftfulThinking
      @SwiftfulThinking  2 года назад +2

      My opinion is that SwiftUI > UIKit > Flutter. Apps are already starting to switch to SwiftUI honestly. It really just depends on the company. Larger, more established codebases don't really need to rewrite the code unless they are making big changes. However, many new features and apps are being done in SwiftUI. I think in the coming years, SwiftUI developers will be in much higher demand.

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

    Scrollviews are awesome and so is Coffee 😀

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

    Nice video ! How would you create a scrollview in a TabView setting so that the scrollview does not override the bottom Tabs ?

  • @TuanHoang-qj3yq
    @TuanHoang-qj3yq 2 года назад +2

    Hi Nick, Thank you for all awesome instructional videos. in your example around minute 8:37 in the video , can we have horizontal scrollview with declining columns, starting first row with 20 columns, second row with 19 columns, ...the last row with 10? In other words, in the ForEach loop instead of a static range of (0..

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

    Dude you're the best, seriously

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

    your efforts are really helpful to me! Thx!!!

  • @Sengardisback
    @Sengardisback 3 года назад +2

    Hey Nick, why not using LazyV/HStacks evertime? Is there any advantage of the usual V/HStacks compared to the lazy ones ?
    Best regards from Germany✌🏻

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

      Haha great question! I just did it here because it's such simple code. If we're building a screen with a lot of rows that you don't want to load all at once, we should definitely be using Lazy stacks.

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

      @@SwiftfulThinking yeah I get it but again why not using it all the time 😂? It’s a little bit weird^^ I am brand new to SwiftUI honestly but nevermind… I am gonna use lazy Stacks in case there are a lot of rows etc…In generell I love your vids and the music at the beginning (Mexican style 😂).

    • @anmol-suneja
      @anmol-suneja 5 месяцев назад

      @@Sengardisback ​ Did you get any idea on this? After reading your comment, I am also wondering the same, why not to use lazy stack always as thumb rule.

    • @Sengardisback
      @Sengardisback 5 месяцев назад

      @@anmol-suneja after 2 years I have still no clue to be honest.

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

    Awesome tutorial, thanks!

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

    This was really helpful

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

    Thank you for the video

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

    One off-topic question...
    What's your machine?
    Because I'm using a brand new MBP 16" M1 Max, and when I added the extra '0' at 09:43 (before changing to LazyVStack), Xcode just froze up.
    I tried it a couple of time (plugged in, High Power) while looking at my hardware. Although nothing was overloaded (15% cpu, 35 - 45% memory, SSD almost idle), Xcode still froze up and I had to force quit every time.
    But I can see yours is working fluidly with live preview on and everything...

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

    Another nice video, thanks. I have a question on ScrollView()
    Let's say we have horizontal and vertical ScrollView as you did at the end of video. Questions:
    1. When I scroll Horizontal row, I want to see the full piece of one RoundedRectangle in screen, I mean I don't want rectangles to be splited in the screen when I stop scrolling.
    2. When a horizontal row is in the 3rd rounded rectangle let's say and I scrolled vertically this time. When the upper horizontal row is out of sight of the screen, I want that row to be return to the original state (first rounded rectangle on the row is displayed when I vertically scroll back)
    How that those possible?
    I hope you understand what I mean.

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

      Hi Ben, there is no built-in way to do this in SwiftUI. So it's a bit more complex and too difficult to explain in a comment here. If you are just learning SwiftUI, my recommendation would be to stick with the default implementations of all components until you are more comfortable and can start customizing them. Otherwise you'll spend a lot of time trying to make one small feature like this. Sorry I couldn't be more help. Nick

    • @chezchezchezchez
      @chezchezchezchez 11 месяцев назад

      @@benceylan273 They added a new feature in ios17!
      Did that solve it for you?
      Snapping!

    • @benceylan273
      @benceylan273 11 месяцев назад +1

      @@chezchezchezchez yes definitely :) That's what I was exactly looking for.

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

    Thank you!!

  • @jaimieguzman7084
    @jaimieguzman7084 7 месяцев назад

    I had my Display Contrast on in Accessibility and I was so confused at the end lol It was just a white screen to me.

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

    awsome bro..😇

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

    you are doing a great job mr. thank you very much

  • @lifegivesuslemons421
    @lifegivesuslemons421 2 месяца назад

    dude you are a god. I take a knee a salute you.

    • @SwiftfulThinking
      @SwiftfulThinking  2 месяца назад

      😂 bro you’re just getting started… wait till you get to the advanced videos 🫡

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

    Hello, love your channel, one question ¿is there any way to individually modify each Rounded Rectangle, to put a picture or something? or to do it it has to be coded in another way ? thanks bye!

    • @SwiftfulThinking
      @SwiftfulThinking  3 года назад +2

      Yes of course you can use any view. The Rectangle is just a placeholder here haha. I would recommend watching this playlist in chronological order and all your questions will be answered 🤓

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

      I added some simple code to Nick's to show the Row & Column no's. Looks like this:
      Here's the code: ScrollView {

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

    how can we add activity indicator(with show more button will be more convenient) when the LazyVStack/LazyHStack get trigger everytime to fetch data?

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

    Too much coffeeeee && awesome videos

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

    Merci beaucoup, très intéressant

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

    Thank you, how to make auto scroll?

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

      You can use a ScrollView reader and add some animation! I covered it here: ruclips.net/video/ZkOvD3okAJo/видео.html

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

    great

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

    super

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

    you are awesome!

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

    Dubble RESPECT

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

    niceeee

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

    Any reason why ScrollView bounces and doesn't let me scroll all the way down?

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

      Your LazyVStack should be embedded inside the scrollview not before it

  • @runpress.runningcompetitio2452
    @runpress.runningcompetitio2452 3 года назад

    Thank!

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

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

    Nick Can you recommend a book for me to read along with your helpful explanation 🤎🤎?

  • @최승기-g8f
    @최승기-g8f 3 года назад

    Thank you !!!

  • @vazzhh
    @vazzhh 10 месяцев назад

    niceeeee