Learn Courses My Dashboard

M4L8 lazystack challange

Hi Chris,

Are we not suppose to not use geometry reader inside a scrollview? it seems that the view would automatically bounce back up when i try to scroll down.

Hi Michael,

You can create the UI anyway you wish but realistically there is no need to use a Geometry Reader in this challenge. Chris Ching has provided some clues as to how to do this.

Essentially the UI consists of a Scrollview in which you have a LazyVStack in which you have a ForEach to loop 60 times to create Rectangles with a fill as suggested and use the index of the loop to influence the Rectangle height as suggested.

By the way, I have moved your post to the Course Students section and the SwiftUI sub section.

1 Like