forked from aparoksha/adwaita-swift
Make update storage function on View public
This commit is contained in:
parent
e583e5a170
commit
b9cdec32c9
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user