Commit 80f1214f by Daniel Dahan Committed by GitHub

Merge pull request #1113 from OrkhanAlikhanov/grid-update

Added update() to Grid
parents f99b6dfd a291ca04
......@@ -189,6 +189,16 @@ public struct Grid {
reload()
}
/**
Update grid in a deferred block.
- Parameter block: An update code block.
*/
public mutating func update(_ block: (Grid) -> Void) {
begin()
block(self)
commit()
}
/// Reload the button layout.
public func reload() {
guard !isDeferred else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment