SwiftUI 5: What’s New In ScrollView

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

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 4 ай бұрын
Excellent thorough explanation, pace and visuals.
@snjvchvn
@snjvchvn 2 ай бұрын
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! 🙌
@海森堡-x4p
@海森堡-x4p 9 ай бұрын
awesome explain, thanks
@rongqingsun1927
@rongqingsun1927 11 ай бұрын
Very nice video, thank you!!
@mikemikina
@mikemikina 11 ай бұрын
Glad you liked it!
@satoriappdev
@satoriappdev 10 ай бұрын
Very well done
@mikemikina
@mikemikina 10 ай бұрын
Thanks!
@tbarcello
@tbarcello 7 ай бұрын
How about keeping the selected photo always horizontally centered? Possible?
@mikemikina
@mikemikina 7 ай бұрын
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 2 ай бұрын
My photo text don't appear even with your binding method any help ?
@mikemikina
@mikemikina 2 ай бұрын
Can you share your code?
@Kamboire
@Kamboire 2 ай бұрын
@@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 М.
Enhancements to ScrollView in iOS 17
23:43
Stewart Lynch
Рет қаралды 6 М.
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 11 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 3 МЛН
Infinite Carousel in SwiftUI! (Easier Than You Think)
13:27
Rebeloper - Rebel Developer
Рет қаралды 1,8 М.
Super Power Scroll Views - SwiftUI - iOS 17
9:14
Sean Allen
Рет қаралды 28 М.
3D Content in iOS & visionOS apps with Spline (Xcode & SwiftUI)
16:21
How to Make a Card View in SwiftUI - Step by Step for Beginners (2023)
32:02
A Swiftly Tilting Planet
Рет қаралды 11 М.
Implementing a ScrollView in SwiftUI | Bootcamp #15
12:18
Swiftful Thinking
Рет қаралды 41 М.
Крутая карусель через UICollectionView
26:20
GeometryReader in SwiftUI: An Annoying Nightmare
24:00
Rebeloper - Rebel Developer
Рет қаралды 899
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36