File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Pod::Spec.new do |spec|
99 spec . author = { 'Venmo' => 'ios@venmo.com' , 'Sam Soffes' => 'sam@soff.es' }
1010
1111 spec . platform = :ios , '8.0'
12+ spec . swift_version = '4.2'
1213 spec . frameworks = 'UIKit'
1314 spec . source_files = 'Static/*.{swift,h}'
1415end
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public class DataSource: NSObject {
2828 public var sections : [ Section ] {
2929 didSet {
3030 assert ( Thread . isMainThread, " You must access Static.DataSource from the main thread. " )
31- refresh ( )
31+ refresh ( oldSections : oldValue )
3232 }
3333 }
3434
@@ -101,8 +101,8 @@ public class DataSource: NSObject {
101101 refresh ( )
102102 }
103103
104- private func refresh( ) {
105- refreshTableSections ( )
104+ private func refresh( oldSections : [ Section ] ? = nil ) {
105+ refreshTableSections ( oldSections : oldSections )
106106 refreshRegisteredCells ( )
107107 }
108108
You can’t perform that action at this time.
0 commit comments