Update documentation

This commit is contained in:
david-swift 2024-07-18 15:54:23 +02:00
parent 93546224f2
commit bf3452dd72
7 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@ public protocol Widget: AnyView {
/// - Parameters:
/// - modifiers: Modify views before being updated.
/// - type: The type of the app storage.
/// - Returns: The view storage.
func container<Data>(
modifiers: [(AnyView) -> AnyView],
type: Data.Type

View File

@ -17,6 +17,7 @@ struct AppearObserver: ConvenienceWidget {
/// - Parameters:
/// - modifiers: Modify views before being updated.
/// - type: The type of the app storage.
/// - Returns: The view storage.
func container<Data>(
modifiers: [(any AnyView) -> any AnyView],
type: Data.Type

View File

@ -17,6 +17,7 @@ struct ContentModifier<Content>: ConvenienceWidget where Content: AnyView {
/// - Parameters:
/// - modifiers: Modify views before being updated.
/// - type: The type of the app storage.
/// - Returns: The view storage.
func container<Data>(
modifiers: [(any AnyView) -> any AnyView],
type: Data.Type

View File

@ -17,6 +17,7 @@ struct Freeze: ConvenienceWidget {
/// - Parameters:
/// - modifiers: Modify views before being updated.
/// - type: The type of the app storage.
/// - Returns: The view storage.
func container<Data>(
modifiers: [(any AnyView) -> any AnyView],
type: Data.Type

View File

@ -17,6 +17,7 @@ struct InspectorWrapper: ConvenienceWidget {
/// - Parameters:
/// - modifiers: Modify views before being updated.
/// - type: The type of the app storage.
/// - Returns: The view storage.
func container<Data>(
modifiers: [(any AnyView) -> any AnyView],
type: Data.Type

View File

@ -15,6 +15,7 @@ struct ModifierStopper: ConvenienceWidget {
/// - Parameters:
/// - modifiers: Modify views before being updated.
/// - type: The type of the app storage.
/// - Returns: The view storage.
func container<Data>(
modifiers: [(any AnyView) -> any AnyView],
type: Data.Type

View File

@ -36,6 +36,7 @@ struct StateWrapper: ConvenienceWidget {
/// - modifiers: Modify views before being updated.
/// - updateProperties: Whether to update properties.
/// - type: The type of the app storage.
/// - Returns: The view storage.
func update<Data>(
_ storage: ViewStorage,
modifiers: [(AnyView) -> AnyView],