diff --git a/DGCAVerifier/Storyboards/Base.lproj/Settings.storyboard b/DGCAVerifier/Storyboards/Base.lproj/Settings.storyboard index b16562b..f6664cd 100644 --- a/DGCAVerifier/Storyboards/Base.lproj/Settings.storyboard +++ b/DGCAVerifier/Storyboards/Base.lproj/Settings.storyboard @@ -33,11 +33,12 @@ - diff --git a/DGCAVerifier/SupportingFiles/Assets.xcassets/spinner.imageset/Contents.json b/DGCAVerifier/SupportingFiles/Assets.xcassets/spinner.imageset/Contents.json index d79e374..4b5be46 100644 --- a/DGCAVerifier/SupportingFiles/Assets.xcassets/spinner.imageset/Contents.json +++ b/DGCAVerifier/SupportingFiles/Assets.xcassets/spinner.imageset/Contents.json @@ -19,5 +19,8 @@ "info" : { "author" : "xcode", "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" } } diff --git a/DGCAVerifier/ViewControllers/CertificateViewer.swift b/DGCAVerifier/ViewControllers/CertificateViewer.swift index 82f358d..2b9459f 100644 --- a/DGCAVerifier/ViewControllers/CertificateViewer.swift +++ b/DGCAVerifier/ViewControllers/CertificateViewer.swift @@ -130,8 +130,14 @@ class CertificateViewerVC: UIViewController { } extension CertificateViewerVC: UITableViewDataSource { + var listItems: [InfoSection] { + hCert.info.filter { + !$0.isPrivate + } + } + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { - return hCert.info.count + return listItems.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { @@ -139,7 +145,7 @@ extension CertificateViewerVC: UITableViewDataSource { guard let cell = base as? InfoCell else { return base } - cell.draw(hCert.info[indexPath.row]) + cell.draw(listItems[indexPath.row]) return cell } }