From 6f3749bfbb7a4332e8d8ed20558e3b67c0efb629 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Tue, 19 May 2020 10:09:27 -0700 Subject: [PATCH] Update ViewStore.swift (#116) --- Sources/ComposableArchitecture/SwiftUI/ViewStore.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/ComposableArchitecture/SwiftUI/ViewStore.swift b/Sources/ComposableArchitecture/SwiftUI/ViewStore.swift index e4e6807a0caf..de0f239ede26 100644 --- a/Sources/ComposableArchitecture/SwiftUI/ViewStore.swift +++ b/Sources/ComposableArchitecture/SwiftUI/ViewStore.swift @@ -1,7 +1,9 @@ import Combine import SwiftUI -/// A `ViewStore` is an object that can observe state changes and send actions from a SwiftUI view. +/// A `ViewStore` is an object that can observe state changes and send actions. They are most +/// commonly used in views, such as SwiftUI views, UIView or UIViewController, but they can be +/// used anywhere it makes sense to observe state and send actions. /// /// In SwiftUI applications, a `ViewStore` is accessed most commonly using the `WithViewStore` view. /// It can be initialized with a store and a closure that is handed a view store and must return a