Skip to main content
Version: 12.10.0

OCFeedCard: UI Component

The OCFeedCard is a customizable card view for displaying feed card details. It can include a image, category title, description.

Features

  • User can pass the desired details to show feed card details:
  • Feed card details it includes image, category title, description.

Parameters:

  • feedCardDetails : Image, category title, description.
  • style : The appearance of the card can be customized using different background and text color
import SwiftUI

struct ContentView: View {

var body: some View {
VStack {
OCFeedCard(feedCardDetails: OCFeedCardDetails(image: .local(image: Image("PlaceholderFeedCard"), category: "Category", title: "Title", description: "Teasertext goes here in maximum of four lines. Cut off (after number of characters/words, when line ends?) with three dots. "))
}.padding(.horizontal, 16)
}
}