Background
Background Page
To create your own Background page, you create a class that implements BaseBackgroundComponent.
- Boilerplate
- Full Example
import SwiftUI
import MealziOSSDK
@available(iOS 14, *)
public struct MyCustomBackgroundView: BackgroundProtocol {
public func content(params: BaseBackgroundParameters) -> some View {
// your implementation here
}
}
import SwiftUI
import MealziOSSDK
@available(iOS 14, *)
public struct MyCustomBackgroundView: BackgroundProtocol {
public init() {}
public func content(params: BaseBackgroundParameters) -> some View {
EmptyView()
}
}
with
public struct BaseBackgroundParameters {