Skip to main content
Version: 5.5

CatalogPackageCTA

This template allows you to customize the Call to Action button above each Package that will open the Catalog Results page.

import SwiftUI
import mealzcore
import MealziOSSDK

@available(iOS 14, *)
public struct MyCustomCatalogPackageCTAView: CatalogPackageCTAProtocol {
public func content(params: CatalogPackageCTAParameters) -> some View {
// your imp here
}
}

Params

public struct CatalogPackageCTAParameters {
/// The name of the package collection
public let title: String
/// The description or the copy of the package collection, if it exists
public let subtitle: String?
/// CTA to open the Catalog Results page with all the recipes from the collection
public let onSeeAllRecipes: () -> Void