Added infoButton to DataVC with text. Changed HeaderTitle text in DataVC
MODIFY
BT-Tracking.xcodeproj/project.pbxproj
BT-Tracking.xcodeproj/project.pbxproj
46F21CA92422444600C01DFA /* ScanListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46F21CA82422444600C01DFA /* ScanListVC.swift */; };
46F21CAF2422597F00C01DFA /* Scan.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46F21CAE2422597F00C01DFA /* Scan.swift */; };
46F21CB4242270F700C01DFA /* ScannerStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46F21CB3242270F700C01DFA /* ScannerStore.swift */; };
+ 5EE9D815242F74F5002F833C /* DataHeaderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE9D814242F74F5002F833C /* DataHeaderCell.swift */; };
800DD2D62428F49800E6CAEA /* Debug.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8054C0B6241D492F008907B8 /* Debug.storyboard */; };
803C5B23242932BF00E49414 /* DataListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 803C5B22242932BF00E49414 /* DataListVC.swift */; };
803C5B252429346500E49414 /* DataListVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 803C5B242429346500E49414 /* DataListVM.swift */; };
46F21CA82422444600C01DFA /* ScanListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScanListVC.swift; sourceTree = "<group>"; };
46F21CAE2422597F00C01DFA /* Scan.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Scan.swift; sourceTree = "<group>"; };
46F21CB3242270F700C01DFA /* ScannerStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ScannerStore.swift; sourceTree = "<group>"; };
+ 5EE9D814242F74F5002F833C /* DataHeaderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataHeaderCell.swift; sourceTree = "<group>"; };
7235650B7A53BA0BF25B7647 /* Pods-BT-Tracking.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BT-Tracking.debug.xcconfig"; path = "Target Support Files/Pods-BT-Tracking/Pods-BT-Tracking.debug.xcconfig"; sourceTree = "<group>"; };
803C5B22242932BF00E49414 /* DataListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataListVC.swift; sourceTree = "<group>"; };
803C5B242429346500E49414 /* DataListVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DataListVM.swift; sourceTree = "<group>"; };
isa = PBXGroup;
children = (
80AD970C2429318B00AEA661 /* DataCell.swift */,
+ 5EE9D814242F74F5002F833C /* DataHeaderCell.swift */,
);
path = Cells;
sourceTree = "<group>";
8054C0D824200E7C008907B8 /* FileController.swift in Sources */,
80ECB96924291E2F00E57601 /* CSVWriter.swift in Sources */,
80B94555242B7B460052CD9F /* ActiveAppViewModel.swift in Sources */,
+ 5EE9D815242F74F5002F833C /* DataHeaderCell.swift in Sources */,
80D5F7E52423D8740010EF51 /* CompleteActivationController.swift in Sources */,
8054C0B1241D492F008907B8 /* AppDelegate.swift in Sources */,
8054C0D0241FE706008907B8 /* BTScanner.swift in Sources */,

MODIFY
BT-Tracking/Interface/Data List/DataListVM.swift
BT-Tracking/Interface/Data List/DataListVM.swift
@@ -51,9 +51,10 @@ class DataListVM {
extension DataListVM {
private func section(from scans: [Scan]) -> [SectionModel] {
+ let header = DataListVM.Section.Item.header(scans.count)
let items: [DataListVM.Section.Item] = scans.map { .data($0) }
return [
- SectionModel(model: .list, items: [.header] + items)
+ SectionModel(model: .list, items: [header] + items)
]
}
@@ -80,7 +81,7 @@ extension DataListVM {
}
enum Item: IdentifiableType, Equatable {
- case header
+ case header(Int)
case data(Scan)
var identity: String {

Added infoButton to DataVC with text. Changed HeaderTitle text in DataVC