tutorial for how to reset collections
This commit is contained in:
1 parent
0d0d718459
commit
fb054a5d19
17 files changed
+250
-28
No files matched your search
@@ -8,11 +8,14 @@
|
||||
import SwiftUI
|
||||
|
||||
struct OnBoardingView: View {
|
||||
let cards: [OnBoardingPage]
|
||||
|
||||
@Binding var isFinished: Bool
|
||||
@State var currentIndex: Int = 0
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
OnBoardingCardView(info: onBoardingCards[currentIndex], pageCount: onBoardingCards.count, idx: $currentIndex)
|
||||
OnBoardingCardView(info: cards[currentIndex], pageCount: cards.count, idx: $currentIndex, isFinished: $isFinished)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user