Skip to main content
Version: 5.0

CatalogRecipesListNoResults

This template allows you to customize the empty view of the Catalog Recipes List.

import SwiftUI
import mealzcore
import MealziOSSDK

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

Params

public struct CatalogRecipesListNoResultsParameters {
/// The type of catalog content that was search, like .favorites, or .filter
public let catalogContent: CatalogContent
/// The search string from Filters
public let searchText: String
/// A closure that can be used to navigate the user to another page, such as the Catalog
public let onNoResultsRedirect: () -> Void