Skip to content

Instantly share code, notes, and snippets.

@ashishkakkad8
Created August 31, 2023 18:09
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/702ad2e4f2ac18afc5cfa69353c08b4c to your computer and use it in GitHub Desktop.
Save ashishkakkad8/702ad2e4f2ac18afc5cfa69353c08b4c to your computer and use it in GitHub Desktop.
CardView for Onboarding View
//
// CardView.swift
// AKPageView
//
// Created by Ashish Kakkad on 31/08/23.
//
import SwiftUI
struct CardView: View {
var image = Image("Onboarding_1")
var title = "It's best place to work!"
var body: some View {
VStack {
image
.resizable()
.aspectRatio(contentMode: .fit)
Text(title)
}
}
}
struct CardView_Previews: PreviewProvider {
static var previews: some View {
CardView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment