struct ModifiedView
Swift
struct ModifiedView<Content> where Content : View
A view wearing a style.
The style lands on the content's existing node whenever that content is a
single box, so .padding().background().cornerRadius() costs no extra Yoga
nodes. Only a fragment — a TupleView, ForEach or conditional, which has
no single node to style — materialises a wrapper.
Modifier order is preserved where it changes layout: padding applied after an existing modifier materialises one outer box. Paint-only modifiers on the same side of that boundary still collapse, avoiding SwiftUI's cost of a wrapper for every modifier.
Sources/LavaUI/Modifiers.swift:120
Constructors
init(content: Content, style: ViewStyle, forceWrapper: Bool = false)
Not documented.
Sources/LavaUI/Modifiers.swift:129
Properties
var content: Content
Not documented.
Sources/LavaUI/Modifiers.swift:121
var dumpDetail: String { get }
Not documented.
Sources/LavaUI/Modifiers.swift:135
var style: ViewStyle
Not documented.
Sources/LavaUI/Modifiers.swift:122
Methods
func backdropBlur(radius: Float = 8) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:738
func background(_ color: Color) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:664
func background(_ gradient: Gradient) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:668
func blur(radius: Float = 8) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:734
func border(_ color: Color, width: Float = 1) -> ModifiedView<Content>
Sources/LavaUI/Modifiers.swift:686
func clipped() -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:690
func cornerRadius(_ radius: Float) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:681
func cursor(_ shape: CursorShape?) -> ModifiedView<Content>
See View.cursor(_:).
Sources/LavaUI/Modifiers.swift:700
func flexGrow(_ value: Float = 1) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:726
func flexShrink(_ value: Float) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:730
func frame(width: Dimension? = nil, height: Dimension? = nil, minWidth: Float? = nil, minHeight: Float? = nil, alignment: Alignment? = nil) -> ModifiedView<Content>
Sources/LavaUI/Modifiers.swift:705
func hoverBackground(_ color: Color) -> ModifiedView<Content>
Not documented.
Sources/LavaUI/Modifiers.swift:672
func hoverSnap(_ snap: Bool = true) -> ModifiedView<Content>
See View.hoverSnap(_:).
Sources/LavaUI/Modifiers.swift:677
func mountPrimitive() -> any AnyViewNode
Not documented.
Sources/LavaUI/Modifiers.swift:144
func padding(_ amount: Float) -> ModifiedView<ModifiedView<Content>>
Padding after an existing modifier belongs to a distinct outer box.
This preserves the SwiftUI distinction between
.padding().frame(...) and .frame(...).padding().
Sources/LavaUI/Modifiers.swift:648
func padding(_ edges: Edge, _ amount: Float) -> ModifiedView<ModifiedView<Content>>
Not documented.
Sources/LavaUI/Modifiers.swift:652
func padding(_ insets: EdgeInsets) -> ModifiedView<ModifiedView<Content>>
Not documented.
Sources/LavaUI/Modifiers.swift:656
func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode
Not documented.
Sources/LavaUI/Modifiers.swift:148
func structureLines(indent: Int = 0) -> [String]
Not documented.
Sources/LavaUI/Modifiers.swift:137