Group Group Group Group Group Group Group Group Group

SwiftUI · ScrollView & Stacks | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4001741-swiftui/lessons/17

Captions not working for this video at the middle! :thinking:

It seems most of image file is missing of this lecture’s project P02E06
Anyway the code works with that warning but would be better with images!
And thank you for good lecture! :slight_smile:

Hey @tkoxff and thanks for the update. Can you confirm this is from the latest projects which were updated this week? Many thanks. Laurie.

@jawad14 Please let us know what browser and operating system are you using exactly. Thank you!

It seems fine now! thanks

Safari on CatalinaOS 10.15 Beta (19A582a)

@jawad14 Do you still have issues with this?

The updated line below, does not provide the same scroll effect in the video. The cells are currently being bunched together on the left.

.rotation3DEffect(Angle(degrees: Double(proxy.frame(in: .global).midX) / 40), axis: (x: -4, y: -3, z: -3))

Hey @pagemaster - thanks for the question! Can you just double-check that the completed project in the starter files is the same as the code you’ve entered? Thank you so much and hopefully its just a small thing! Laurie.

Hey @isaacmendez - the left side bunching seems to happen in the P02E06-Complete project.

It occurs in the canvas, simulator and on real hardware. I’m running Xcode 11.5 (11E608c) on Catalina 10.15.5 (19F101).
Bunching

Hey @pagemaster the pile underneath on the left is supposed to look like that if that’s what you mean? That was my design to show you what you could do so easily with scrollviews and stacks. If you mean something else just let me know.

I was surprised that a pile was being formed, yet in the video the items are scrolling off-screen (no pile).
Expected Effect

1 Like

@pagemaster yes I slightly changed the code as at the time there was a crash with that version of SwiftUI since it was so early in Beta. Sorry for any confusion. I hope you like the nice little pile - this was my intention early on as it was traditionally very hard to achieve using UICollectionViews and custom layouts. Have fun creating your own effects :slight_smile: . Laurie.