Last active
February 22, 2019 07:35
-
-
Save gwennguihal/c09962c33b643715a6c3edbd81c1d780 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //--- SectionDescriptor | |
| // new propertie | |
| private(set) var verticalSpaces = [Int: VerticalSpace]() | |
| @discardableResult public func reloadSection(_ builderClosure: @escaping BuilderClosure) -> SectionDescriptor { | |
| let builder = Builder(sectionDescriptor: self) | |
| builderClosure(builder) | |
| verticalSpaces = builder.verticalSpaces | |
| return reloadSection { cells in | |
| cells = builder.cells | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment