Protocols
The following protocols are available globally.
-
Represents a session of the WebSocket server you provide to a client browser.
See moreDeclaration
Swift
public protocol WebSocketSession
-
A type that produces view previews in Xcode for SwiftUI. Currently has no effect with the SwiftWeb framework.
See moreDeclaration
Swift
public protocol PreviewProvider
-
A type that represents part of your app’s user interface and provides modifiers that you use to configure views.
You create custom views by declaring types that conform to the
See moreView
protocol. Implement the requiredbody
computed property to provide the content for your custom view.Declaration
Swift
public protocol View : TypeErasedView
-
A modifier that you apply to a view or another view modifier, producing a different version of the original value.
See moreDeclaration
Swift
public protocol ViewModifier
-
Implement this protocol with your
See moreView
in order to customize its set ofGrowingLayoutAxis
.Declaration
Swift
public protocol GrowingAxesModifying
-
A named value produced by a view.
A view with multiple children automatically combines its values for a given preference into a single value visible to its ancestors.
See moreDeclaration
Swift
public protocol PreferenceKey : AnyPreferenceKey
-
Type-erased
PreferenceKey
.Declaration
Swift
public protocol AnyPreferenceKey
-
A custom specification for the appearance and interaction of a
Picker
.Declaration
Swift
public protocol PickerStyle