Skip to main content
Version: 5.7

MealsInBasketButtonSuccess

This template allows you to customize the footer button at the bottom of the My Space page which opens the MyMeals page.

import SwiftUI
import mealzcore
import MealziOSSDK

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

Params

public struct MealsInBasketButtonSuccessParameters {
/// The number of recipes currently in the basket
public let mealsCount: Int
/// A closure to naviage to the basket or MyMeals page
public let onNavigateToMyMeals: () -> Void