Skip to main content
Version: 12.10.0

OCMagazineCard: UI Component

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

Features

  • User can pass the desired details to show magazine card details:
  • Magazine card details it includes image, title, description.

Parameters:

  • magazineCardDetails : Image, 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 {
OCMagazineCard(magazineDetails: OCMagazineCardDetails(image: .local(image: Image("PlaceholderFeedCard"),
title: "Title",
description: "Teasertext goes here in maximum of four lines. Cut off (after number of characters/words, when line ends?) with three dots. "), style: OCMagazineStyle(descriptionLineLimit: 2))
}.padding(.horizontal, 16)
}
}