Skip to main content
Version: 4.0

RecipeDetailSwapper

Swapper

To create your own recipe detail swapper template you create a class that implements RecipeDetailsSelectedControlProtocol

import SwiftUI
import mealzcore
import MealziOSSDK

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

with

public struct RecipeDetailsSelectedControlParameters {
/// Current tab, either shopping (products) or cooking (ingredients & steps)
@Binding public var selection: SelectedControlPage