Skip to content

Instantly share code, notes, and snippets.

@ashishkakkad8
Created August 31, 2023 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashishkakkad8/12b253aa5a01b9a7617d3af651fb7b2d to your computer and use it in GitHub Desktop.
Save ashishkakkad8/12b253aa5a01b9a7617d3af651fb7b2d to your computer and use it in GitHub Desktop.
AKPageView for Onboarding View
//
// 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