From 95886642ab11ace3845ebd808d5f9186d3a7e60b Mon Sep 17 00:00:00 2001
From: Mustafa Merza <mustafa.merza95@gmail.com>
Date: Sun, 18 Aug 2024 21:50:00 +0300
Subject: [PATCH] - Fixed displaying signature view when exists.

---
 .../CustomViews/BannerView.swift                 | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/MiniScanner/Modules/EditViewController/CustomViews/BannerView.swift b/MiniScanner/Modules/EditViewController/CustomViews/BannerView.swift
index 05c8df2..72c897b 100644
--- a/MiniScanner/Modules/EditViewController/CustomViews/BannerView.swift
+++ b/MiniScanner/Modules/EditViewController/CustomViews/BannerView.swift
@@ -219,21 +219,7 @@ extension BannerView {
         
         let subviews = cell.contentView.subviews
         
-        if signAllDoc {
-            
-            if !subviews.contains(cell.selectedStickerView1 ?? UIView()) {
-                
-                configure(cell: cell, with: scannedItem, position: position, signature: signature)
-            }
-        }
-        else {
-            
-            if !subviews.contains(cell.selectedStickerView1 ?? UIView())
-                && index == pagerView.currentIndex {
-                
-                configure(cell: cell, with: scannedItem, position: position, signature: signature)
-            }
-        }
+        configure(cell: cell, with: scannedItem, position: position, signature: signature)
     }
     
     private func configure(cell: FSPagerViewCell, with scannedItem: ScannedItem, position: CGPoint, signature: UIImage) {
-- 
GitLab