ALFailureStyle
@MainActor
public protocol ALFailureStyle
Used to customize the style of the ALFailureView
.
-
The content parameter type.
Declaration
Swift
typealias Content = AnyView
-
The message type.
Declaration
Swift
associatedtype MessageBody : View
-
The retry button type.
Declaration
Swift
associatedtype RetryButtonBody : View
-
The cancel button type.
Declaration
Swift
associatedtype CancelButtonBody : View
-
Customizes the message.
Declaration
Swift
@ViewBuilder @MainActor func makeMessage(content: Content) -> MessageBody
Parameters
content
The raw content.
Return Value
The modified content.
-
Customizes the retry button.
Declaration
Swift
@ViewBuilder @MainActor func makeRetryButton(content: Content) -> RetryButtonBody
Parameters
content
The raw content.
Return Value
The modified content.
-
Customizes the cancel button.
Declaration
Swift
@ViewBuilder @MainActor func makeCancelButton(content: Content) -> CancelButtonBody
Parameters
content
The raw content.
Return Value
The modified content.