AppBackground
@MainActor
struct AppBackground<Content> : View where Content : View
This is a general-purpose View that displays the background gradient, under the contained View.
-
We can provide a different alignment. The default is top.
Declaration
Swift
@State @MainActor var alignment: Alignment { get nonmutating set } -
The content Viewbuilder.
Declaration
Swift
@ViewBuilder @MainActor let content: () -> Content -
This simply adds a gradient background to the contained View.
Declaration
Swift
@MainActor var body: some View { get }
View on GitHub