Skip to main content
Version: 5.6

Footer

This template allows you to customize the Footer section of the Preferences page.

import SwiftUI
import mealzcore
import MealziOSSDK

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

Params

public struct PreferencesFooterParameters {
/// The number of recipes that will be returned based on the current criteria
public let recipesFound: Int?
/// A closure to apply the preferences & close the page
public let onApplied: () -> Void
/// A closure to close the page without applying
public let onClosed: () -> Void