Skip to main content
Version: 5.4

FavoritesTitle

FavoritesTitle

To create your own Favorites Title, you create a class that implements BaseTitleComponent.

import SwiftUI
import MealziOSSDK

@available(iOS 14, *)
public struct MyCustomTitleView: BaseTitleProtocol {
public func content(params: TitleParameters) -> some View {
// your implementation here
}
}

with

public struct TitleParameters {
/// Main text
public let title: String
/// Subtext
public let subtitle: String?