Structures
The following structures are available globally.
-
The context used in a
See moreUIViewControllerRepresentable
type.Declaration
Swift
public struct UIViewControllerRepresentableContext<Representable> where Representable : UIViewControllerRepresentable
-
The context used in a
See moreUIViewRepresentable
type.Declaration
Swift
public struct UIViewRepresentableContext<Representable> where Representable : UIViewRepresentable
-
Contains the Environment values set by the framework.
See moreDeclaration
Swift
public struct EnvironmentValues
-
Contains merged view values and contextual information while traversing a view hierarchy.
Declaration
Swift
public struct Context
-
Contains originating attributes of a view update transaction
See moreDeclaration
Swift
public struct Transaction
extension Transaction: Hashable
-
A type that describes properties of an animation
See moreDeclaration
Swift
public struct Animation
extension Animation: Hashable
-
The inset distances for the sides of a rectangle.
See moreDeclaration
Swift
public struct EdgeInsets : Equatable
-
A type that specifies the alignment of the content inside its container.
See moreDeclaration
Swift
public struct Alignment : Equatable
-
A proxy for access to the size and coordinate space (for anchor resolution) of the container view.
See moreDeclaration
Swift
public struct GeometryProxy : Hashable
-
A type that represents the presentation mode of a view.
See moreDeclaration
Swift
public struct PresentationMode
-
A type that represents a font and its configuration.
See moreDeclaration
Swift
public struct Font
-
A type that contains the configuration of a button style.
See moreDeclaration
Swift
public struct ButtonStyleConfiguration
-
A type representing a geometry angle.
See moreDeclaration
Swift
public struct Angle : Hashable
-
A type that represents a transition used by a view when being added or removed from a hierarchy.
See moreDeclaration
Swift
public struct AnyTransition
-
Type that represents a system alert. Use it to customize the texts and actions that will be shown in the alert.
See moreDeclaration
Swift
public struct Alert
-
Type that represents a system action sheet. Use it to customize the texts and actions that will be shown in the action sheet.
See moreDeclaration
Swift
@available(macOS, unavailable) public struct ActionSheet
-
A container whose view content children will be presented as a menu items in a contextual menu after completion of the standard system gesture.
The controls contained in a
See moreContextMenu
should be related to the context they are being shown from.Declaration
Swift
@available(tvOS, unavailable) public struct ContextMenu
-
Represents the values of a view, which can be customized by view modifiers. For internal use only.
See moreDeclaration
Swift
public struct ViewValues : AnimatedViewValuesHolder
-
A group is a convenience view that groups multiple views into a single view. This view has no visual representation and does not affect the subviews layouts in any way.
Use this when the number of elements inside a
See moreViewBuilder
exceeds the limit.Declaration
Swift
public struct Group : View, ViewGrouper
-
This view arranges subviews horizontally.
See moreDeclaration
-
Declaration
Swift
public struct ListVisibleRow
-
A list of elements that creates each subview on demand.
See moreDeclaration
Swift
public struct List<Content, Data, ID> : View where Content : View, ID : Hashable
extension List: Renderable
-
A tab view that is shown at the bottom of the screen.
Important: This view will add a tab view at the root screen in the application.
See moreDeclaration
-
This view arranges subviews vertically.
See moreDeclaration
-
This view arranges subviews one in front of the other, using the z axis.
See moreDeclaration
-
A view that can be tapped by the user to trigger some action.
See moreDeclaration
-
A view that displays a wheel-style date picker that allows selecting a date in the range.
See moreDeclaration
-
A view that displays a range of values, and a knob that allows selecting a value in the range.
See moreDeclaration
-
A view that allows text input in one line.
See moreDeclaration
-
A view that can be turned on and off.
See moreDeclaration
-
A view that adds navigation capabilities to a whole view hierarchy. Add only one
NavigationView
per view hierarchy.By adding a
See moreNavigationView
, a navigation bar will be shown by default.Declaration
-
A view that represents a color.
By default, a
See moreColor
that is directly rendered in a view hierarchy will expand both horizontally and vertically infinitely as much as its parent view allows it to.Declaration
-
A container view that provides its children a
GeometryProxy
value with it’s own frame.By default this view’s dimensions are flexible.
See moreDeclaration
Swift
public struct GeometryReader : View
-
A view that renders an image.
See moreDeclaration
-
A view that displays a list of values, from which one can be selected.
By Default a picker view style will be used. If you want to use a different style, modify the view with the
See more.pickerStyle(_)
method.Declaration
-
Declaration
Swift
public struct SegmentedPickerStyle : PickerStyle
-
A view that expands infinitely as much as it is allowed by its parent view. Spacers should only be used inside
HStack
orVStack
, otherwise it’s behavior will be undefined.When inside a
HStack
, the spacer will expand horizontally.When inside a
See moreVStack
, the spacer will expand vertically.Declaration
-
A view that represents a read only text
See moreDeclaration
-
Type that hold style properties of a stroke.
See moreDeclaration
Swift
public struct StrokeStyle : Equatable