Skip to main content
Version: 12.10.0

OnboardCardView Component

The onboardCardView component is a reusable onboardCardView that allows you to create customizable onboardCardView by setting with image placeholder, title and description.

Features

  • Create onboardCardView.
  • Customize image placeholder, title and description.

Installation

  1. Copy the OCOnboardingCardView component folder into your Xcode project.

  2. Use the OCOnboardingCardView view in your SwiftUI code:

import SwiftUI

struct ContentView: View {

var body: some View {
VStack{

OCOnboardingCardView(imageType:
.local(image: Image("OnboardCardlaceholder"),
title: "Title here ",
description: "Get started with our amazing app.")

// We can pass image url as well like below
OCOnboardingCardView(imageType:
.url(path: "image url here"),
title: "Title here ",
description: "Get started with our amazing app.")
}
.padding()
}
}