Make update storage function on View public

This commit is contained in:
david-swift 2023-12-30 21:06:00 +01:00
parent e583e5a170
commit b9cdec32c9

View File

@ -51,7 +51,7 @@ extension View {
/// - Parameters: /// - Parameters:
/// - storage: The storage. /// - storage: The storage.
/// - modifiers: Modify views before being updated. /// - modifiers: Modify views before being updated.
func updateStorage(_ storage: ViewStorage, modifiers: [(View) -> View]) { public func updateStorage(_ storage: ViewStorage, modifiers: [(View) -> View]) {
let modified = getModified(modifiers: modifiers) let modified = getModified(modifiers: modifiers)
if let widget = modified as? Widget { if let widget = modified as? Widget {
widget.update(storage, modifiers: modifiers) widget.update(storage, modifiers: modifiers)