Structures
The following structures are available globally.
-
The HTML template provided by SwiftWeb. Serve this with your HTTP server implementation.
See moreDeclaration
Swift
public struct HTMLTemplate
-
An environment-dependent font.
See moreDeclaration
Swift
public struct Font
-
A property wrapper type that can read and write a value owned by a source of truth.
See moreDeclaration
Swift
@propertyWrapper public struct Binding<Value>
-
The
See moreEmptyView
is used by theViewBuilder
as a return value for empty blocks.Declaration
Swift
public struct EmptyView : View
-
A type-erased
View
.An AnyView allows changing the type of view used in a given view hierarchy.
See moreDeclaration
Swift
public struct AnyView : View, CustomMappable
-
An environment-dependent color.
See moreDeclaration
Swift
public struct Color : View, GrowingAxesModifying
-
The collection of underlying identified data that SwiftWeb uses to create views dynamically.
See moreDeclaration
Swift
public struct ForEach<Data, ID, Content> : View, CustomMappable where Data : RandomAccessCollection, Content : View
-
A view that arranges its children in a horizontal line.
See moreDeclaration
Swift
public struct HStack<Content> : Stack, GrowingAxesModifying where Content : View
-
A container that presents rows of data arranged in a single column.
See moreDeclaration
Swift
public struct List<Content> : View, GrowingAxesModifying where Content : View
-
A configuration for a navigation bar that represents a view at the top of a navigation stack.
See moreDeclaration
Swift
public struct NavigationBarItem
-
A control for selecting from a set of mutually exclusive values. SwiftWeb currently only implements the
See moreSegmentedPickerStyle
forPicker
. -
A structure representing the segmented style of the
See morePicker
. This is currently the only supported style in SwiftWeb.Declaration
Swift
public struct SegmentedPickerStyle : PickerStyle
-
A control for selecting a value from a bounded linear range of values.
See moreDeclaration
Swift
public struct Slider : View, ChangeInputEventResponder, GrowingAxesModifying
-
A flexible space that expands along the major axis of its containing stack layout, or on both axes if not contained in a stack.
See moreDeclaration
Swift
public struct Spacer : View, GrowingAxesModifying
-
A control that displays an editable text interface.
See moreDeclaration
Swift
public struct TextField : View, ChangeInputEventResponder
-
A view that arranges its children in a vertical line.
See moreDeclaration
Swift
public struct VStack<Content> : Stack, GrowingAxesModifying where Content : View
-
A custom parameter attribute that constructs views from closures.
See moreDeclaration
Swift
@_functionBuilder public struct ViewBuilder
-
A view that overlays its children, aligning them in both axes.
See moreDeclaration
Swift
public struct ZStack<Content> : Stack, GrowingAxesModifying where Content : View