Created
August 31, 2023 18:15
-
-
Save ashishkakkad8/12b253aa5a01b9a7617d3af651fb7b2d to your computer and use it in GitHub Desktop.
AKPageView for Onboarding View
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AKPageView.swift | |
// AKPageView | |
// | |
// Created by Ashish Kakkad on 31/08/23. | |
// | |
import SwiftUI | |
struct AKPageView: View { | |
var body: some View { | |
TabView() { | |
CardView(image: Image("Onboarding_1"), title: "It's best place to work!") | |
CardView(image: Image("Onboarding_2"), title: "Work mode on!") | |
} | |
.tabViewStyle(.page) | |
.indexViewStyle(.page(backgroundDisplayMode: .always)) | |
} | |
} | |
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { | |
AKPageView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment