Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Sep 2, 2024
1 parent 46f5c32 commit 6eb346f
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Sources/Model/Data Flow/Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public struct ModelData {
/// Extend the model.
extension Model {

/// Get the value as a binding using the `$` prefix.
/// Get the value as a binding.
public var binding: Binding<Self> {
.init {
getModel()
Expand Down
4 changes: 2 additions & 2 deletions Sources/Model/Extensions/Array.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extension Array: AnyView where Element == AnyView {
/// - storages: The collection of view storages.
/// - data: Modify views before being updated.
/// - updateProperties: Whether to update properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
public func update<Data>(
_ storages: [ViewStorage],
data: WidgetData,
Expand All @@ -57,7 +57,7 @@ extension Array: AnyView where Element == AnyView {
/// Get the view storages of a collection of views.
/// - Parameters:
/// - data: Modify views before generating the storages.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The storages.
public func storages<Data>(
data: WidgetData,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Model/User Interface/View/AnyView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ extension AnyView {
/// - storage: The storage.
/// - data: Modify views before being updated.
/// - updateProperties: Whether to update properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
public func updateStorage<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/Model/User Interface/View/Widget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public protocol Widget: AnyView {
/// The view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand All @@ -26,7 +26,7 @@ public protocol Widget: AnyView {
/// - storage: The storage to update.
/// - data: Modify views before being updated
/// - updateProperties: Whether to update the view's properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
func update<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/AppearObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct AppearObserver: ConvenienceWidget {
/// The view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand All @@ -32,7 +32,7 @@ struct AppearObserver: ConvenienceWidget {
/// - storage: The storage to update.
/// - data: Modify views before being updated
/// - updateProperties: Whether to update the view's properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
func update<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/ContentModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct ContentModifier<Content>: ConvenienceWidget where Content: AnyView {
/// The view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand All @@ -30,7 +30,7 @@ struct ContentModifier<Content>: ConvenienceWidget where Content: AnyView {
/// - storage: The storage to update.
/// - data: Modify views before being updated
/// - updateProperties: Whether to update the view's properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
func update<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/DummyEitherView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct DummyEitherView: ConvenienceWidget {
/// The view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand All @@ -34,7 +34,7 @@ struct DummyEitherView: ConvenienceWidget {
/// - storage: The storage to update.
/// - data: Modify views before being updated
/// - updateProperties: Whether to update the view's properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
func update<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/Freeze.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct Freeze: ConvenienceWidget {
/// The view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand All @@ -30,7 +30,7 @@ struct Freeze: ConvenienceWidget {
/// - storage: The storage to update.
/// - data: Modify views before being updated
/// - updateProperties: Whether to update the view's properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
func update<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/InspectorWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct InspectorWrapper: ConvenienceWidget {
/// The view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand All @@ -32,7 +32,7 @@ struct InspectorWrapper: ConvenienceWidget {
/// - storage: The storage to update.
/// - data: Modify views before being updated
/// - updateProperties: Whether to update the view's properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
func update<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/ModifierStopper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct ModifierStopper: ConvenienceWidget {
/// The view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand All @@ -28,7 +28,7 @@ struct ModifierStopper: ConvenienceWidget {
/// - storage: The storage to update.
/// - data: Modify views before being updated
/// - updateProperties: Whether to update the view's properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
func update<Data>(
_ storage: ViewStorage,
data: WidgetData,
Expand Down
4 changes: 2 additions & 2 deletions Sources/View/StateWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct StateWrapper: ConvenienceWidget {
/// - storage: The view storage.
/// - data: Modify views before being updated.
/// - updateProperties: Whether to update properties.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func update<Data>(
_ storage: ViewStorage,
Expand All @@ -60,7 +60,7 @@ struct StateWrapper: ConvenienceWidget {
/// Get a view storage.
/// - Parameters:
/// - data: Modify views before being updated.
/// - type: The type of the app storage.
/// - type: The view render data type.
/// - Returns: The view storage.
func container<Data>(
data: WidgetData,
Expand Down

0 comments on commit 6eb346f

Please sign in to comment.