Skip to main content
Version: 5.0

MealPlannerCTA

This template allows you to customize the CTA that will open the Meal Planner feature on the Catalog. Unless you have enabled the Meal Planner feature manually, the button will not appear.

import SwiftUI
import mealzcore
import MealziOSSDK

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

Params

public struct MealPlannerCTAViewParameters {
/// A closure that navigates the user to the Meal Planner Feature
public let onTapGesture: () -> Void