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
-
Copy the
OCFeatureCardcomponent folder into your Xcode project. -
Use the
OCFeatureCardview 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)