BLACK FRIDAY: Save 50% on all my Swift books and bundles! >>

Moonshot: scrollview without that white color when scrolling between images that have navigation links?

Forums > 100 Days of SwiftUI

Still quite new with swiftUi...

Now starting with the ScrollView and NavigationLinks...

I have noticed that when I try to scroll between images that have a navigationlink, if I scroll from one image to the others, that image turns white (as if I was going to click on it). Is there a way of not getting thar "white" when scrolling, but just when I click on the images?

maybe using a modifier? or it has to be like that?

   

Help please...

Everytime I try scrollview in an appstore's app i can scroll perfectly also the images have navigationlinks

but everytime i use the scrollview in xcode with images that have navigationlinks i have that problem when scrolling... that "white" effect as if I was going to click on the image instead of scrolling form one to the others...

could I do something to have that "white" just when clicking on them, but no when I scroll between them?

   

You're in great luck!

Stewart Lynch, another Swift tutorial legend, just released a new video titled "Scroll View Deep Dive"

See -> Scroll View Deep Dive

I'm sure you'll find your answer there. But PLEASE return here and share your code and what you learned!

Keep Coding

   

@Obelix Thanks for the video !!!!!!!!

I think the modifier I am looking for would be the .onscrollphasechange, wouldn't it?

I can't try it until ios 18 is released...

Thanks a lot! I will try it!

   

Save 50% in my WWDC sale.

SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.