-
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
.verticalaxis.Declaration
Swift
var layoutAxis: LayoutAxis { get } -
Transforms this view with the supplied closure argument. Can be overridden by
Views by implementing theCustomMappableprotocol 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
bodyof a view if theBodytype is not equal toNever, returns an empty array otherwise.Declaration
Swift
func mapBody<T>(_ transform: (TypeErasedView) -> T) -> [T]
-
debugDescriptionExtension methodUndocumented
Declaration
Swift
var debugDescription: String { get } -
anyView()Extension methodUndocumented
Declaration
Swift
func anyView() -> AnyView
View on GitHub
TypeErasedView Protocol Reference