SwiftUI 3.0 Tinder App UI With Gesture Enabled Cards - NotificationCenter - Complex UI - Xcode 13
🕑 Added 2021-12-07 21:27:38 +0000 UTCSource Code For SwiftUI 3.0 Tinder App UI With Gesture Enabled Cards - NotificationCenter - Complex UI - Xcode 13.
Download Code 👇
Comments
Kavsoft
Consider this example We have two cards sized 200px and making it take the full space on both leading and trailing (400px) If we place one on another and if we move the first card using gestures at sometimes user may be able to drag the second card too To avoid that we’re making the content shape so that the even the current card moves it won’t allow the second card to swipe But the same time we can’t even swipe the below cards since there is a view avoiding it so we’re trimming the below view if the above view is properly swiped!
Kleyton Santos
Hey man, good job, I have a question: How it works the ".contentShape(Rectangle().trim(from: 0, to: endSwipe ? 0 : 1))" ? Actually how the "trim" function works on this case? I didn't understand why we are enable drag the previous screen after doing this.
Andrej
Awesome job ....