SwiftUI 5: What’s New In ScrollView

  Рет қаралды 9,641

Mike Mikina

Mike Mikina

Күн бұрын

Пікірлер: 18
@FloWritesCode
@FloWritesCode Жыл бұрын
I planned to make a video like this as well, but yours is so good that I won't do one for now. Great work, Mike. Really nice overview of everything that changed!
@mikemikina
@mikemikina Жыл бұрын
Thanks Flo!
@DVMagicStudios
@DVMagicStudios 5 ай бұрын
Excellent thorough explanation, pace and visuals.
@snjvchvn
@snjvchvn 3 ай бұрын
This one is gonna be on repeat till i get it.. thanks
@marvinmeinhard4711
@marvinmeinhard4711 Жыл бұрын
This is perfectly explained and deserves much more views. Thank You!
@mikemikina
@mikemikina Жыл бұрын
Thanks Marvin! 🙌
@rongqingsun1927
@rongqingsun1927 Жыл бұрын
Very nice video, thank you!!
@mikemikina
@mikemikina Жыл бұрын
Glad you liked it!
@海森堡-x4p
@海森堡-x4p 10 ай бұрын
awesome explain, thanks
@satoriappdev
@satoriappdev Жыл бұрын
Very well done
@mikemikina
@mikemikina Жыл бұрын
Thanks!
@tbarcello
@tbarcello 8 ай бұрын
How about keeping the selected photo always horizontally centered? Possible?
@mikemikina
@mikemikina 8 ай бұрын
Yes, it is. I actually started with this. It looked like an old iPod animation 😄 But it had a problem with the last photo. That's why I decided to switch to a simpler version.
@Kamboire
@Kamboire 4 ай бұрын
My photo text don't appear even with your binding method any help ?
@mikemikina
@mikemikina 4 ай бұрын
Can you share your code?
@Kamboire
@Kamboire 4 ай бұрын
@@mikemikina GeometryReader(content: { geometry in let size = geometry.size ScrollView(.horizontal){ HStack(spacing : 5){ ForEach(RowCards){ card in GeometryReader(content: { proxy in let cardsize = proxy.size let minX = proxy.frame(in: .scrollView).minX - 30.0 let minX2 = min((proxy.frame(in: .scrollView).minX*1.4),size.width*1.4) Image(card.image) .resizable() .aspectRatio(contentMode: .fill) .offset(x: -minX) .frame(width: cardsize.width, height: cardsize.height) .clipShape(.rect(cornerRadius: 10) ) .shadow(color: /*@START_MENU_TOKEN@*/.black/*@END_MENU_TOKEN@*/.opacity(0.25), radius: 8, x : 5 ,y : 10) }) .frame(width: size.width - 60) .scrollTransition(.interactive,axis: .horizontal) { view, phase in view .scaleEffect(phase.isIdentity ? 1 : 0.93) } } } .padding(.horizontal,15) .scrollTargetLayout() .frame(height: size.height,alignment: .top) } .scrollTargetBehavior(.viewAligned) .scrollIndicators(.hidden) }) .frame(height: 400) .padding(.horizontal,-15) .padding(.top,10) } } .padding(15) } .scrollIndicators(.hidden) }
@FriedItalian
@FriedItalian Жыл бұрын
scrollPosition(initialAnchor) is not showing up in my xcode and I cannot find documentation for it. Any help?
@mikemikina
@mikemikina Жыл бұрын
The scrollPosition(initialAnchor:) has been replaced by the defaultScrollAnchor(_:). You can find it here: developer.apple.com/documentation/swiftui/view/defaultscrollanchor(_:)
SwiftUI: New Observation Framework
8:25
Mike Mikina
Рет қаралды 2,1 М.
Enhancements to ScrollView in iOS 17
23:43
Stewart Lynch
Рет қаралды 7 М.
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 23 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 13 МЛН
Infinite Carousel in SwiftUI! (Easier Than You Think)
13:27
Rebeloper - Rebel Developer
Рет қаралды 2,1 М.
Super Power Scroll Views - SwiftUI - iOS 17
9:14
Sean Allen
Рет қаралды 29 М.
Paging ScrollView in SwiftUI for iOS 17 | Continued Learning #34
22:58
Swiftful Thinking
Рет қаралды 9 М.
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 326 М.
WWDC23: Beyond scroll views | Apple
14:47
Apple Developer
Рет қаралды 35 М.
Welcome to Play 2.0!
13:13
Create with Play
Рет қаралды 8 М.
Stop using GeometryReader in SwiftUI
4:27
Flo writes Code
Рет қаралды 6 М.
ScrollViewReader to auto scroll in SwiftUI | Continued Learning #5
14:47
Swiftful Thinking
Рет қаралды 21 М.