File tree Expand file tree Collapse file tree
SplitScreenScanner/Classes Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: 2
22jobs :
33 build-and-test :
44 macos :
5- xcode : 11.0.0
5+ xcode : 12.5.1
66 working_directory : /Users/distiller/project
77 environment :
88 FL_OUTPUT_DIR : /Users/distiller/project/Example/fastlane/test_output
@@ -27,4 +27,4 @@ workflows:
2727 version : 2
2828 build-test-adhoc :
2929 jobs :
30- - build-and-test
30+ - build-and-test
Original file line number Diff line number Diff line change 11PODS:
22 - Sections (0.8.0)
3- - SplitScreenScanner (9.0.2 ):
3+ - SplitScreenScanner (9.1.1 ):
44 - Sections
55 - SwiftLint (0.34.0)
66
@@ -20,9 +20,9 @@ EXTERNAL SOURCES:
2020
2121SPEC CHECKSUMS:
2222 Sections: efc268a207d0e7afba82d2a0efd6cdf61872b5d4
23- SplitScreenScanner: 48ddf2c2db8bb133a0b7991e29fd9e3fb0546c05
23+ SplitScreenScanner: a4e8c1c708f5434b3d4374218463ddd7d81c7774
2424 SwiftLint: 79d48a17c6565dc286c37efb8322c7b450f95c67
2525
2626PODFILE CHECKSUM: e3b551128f802187ddddf037b42e5f79c866fb2a
2727
28- COCOAPODS: 1.11.2
28+ COCOAPODS: 1.8.4
Original file line number Diff line number Diff line change 88
99Pod ::Spec . new do |s |
1010 s . name = 'SplitScreenScanner'
11- s . version = '9.1.0 '
11+ s . version = '9.1.1 '
1212 s . summary = 'Swift library for scanning barcodes with half the screen devoted to scan history'
1313
1414# This description is used to generate tags and improve search results.
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import UIKit
1010class ScanHistoryTableViewController : UITableViewController {
1111 var viewModel : ScanHistoryViewModel !
1212
13+ private var pendingInsertions : [ IndexPath ] = [ ]
14+
1315 override func viewDidLoad( ) {
1416 super. viewDidLoad ( )
1517
@@ -20,8 +22,13 @@ class ScanHistoryTableViewController: UITableViewController {
2022 }
2123
2224 viewModel. insertRowObserver = { [ weak self] indexPath in
25+ self ? . pendingInsertions. insert ( indexPath, at: 0 )
2326 DispatchQueue . main. async {
24- self ? . tableView. insertRows ( at: [ indexPath] , with: . left)
27+ guard let pendingInsertions = self ? . pendingInsertions, !pendingInsertions. isEmpty else {
28+ return
29+ }
30+ self ? . tableView. insertRows ( at: pendingInsertions, with: . left)
31+ self ? . pendingInsertions = [ ]
2532 }
2633 }
2734
You can’t perform that action at this time.
0 commit comments