Skip to main content
Version: 12.10.0

OCFeatureCard: UI component

The OCFeatureCard is a customizable card view for displaying the title and description. The appearance of the card can be customized using different type which includes small and large.

Features

  • User can pass the desired title, discription, image and lock status.

Installation

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

  2. Use the OCFeatureCard view in your SwiftUI code:

Usage

You can create an instance of OCFeatureCard by initializing it with various parameters. Here's an example of how to create a button with a title and an icon:

OCFeatureCard(
title: "Title",
description: "Description.",
type: .small,
imgPlaceholder: .phone,
isLocked: false)