Created
August 31, 2023 18:09
-
-
Save ashishkakkad8/702ad2e4f2ac18afc5cfa69353c08b4c to your computer and use it in GitHub Desktop.
CardView for Onboarding View
This file contains hidden or 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
// | |
// 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