-
The primary layout axis of the view. This is used by the SwiftWeb layout system to generate CSS properties mimicking the SwiftUI layout system. By default, all HTML elements in SwiftWeb are aligned in the
.vertical
axis.Declaration
Swift
var layoutAxis: LayoutAxis { get }
-
Transforms this view with the supplied closure argument. Can be overridden by
View
s by implementing theCustomMappable
protocol in order to represent multiple subviews. This method is used by SwiftWeb for instantiating the view tree during runtime.Declaration
Swift
func map<T>(_ transform: (TypeErasedView) -> T) -> [T]
-
Helper method which transforms the
body
of a view if theBody
type is not equal toNever
, returns an empty array otherwise.Declaration
Swift
func mapBody<T>(_ transform: (TypeErasedView) -> T) -> [T]
-
debugDescription
Extension methodUndocumented
Declaration
Swift
var debugDescription: String { get }
-
anyView()
Extension methodUndocumented
Declaration
Swift
func anyView() -> AnyView