From d267f0a58e66e33fb4a8bf36952eefd291a6ad81 Mon Sep 17 00:00:00 2001 From: sasha malina Date: Tue, 10 Apr 2018 20:00:27 +0300 Subject: [PATCH] Fix doubling separator line issue The problem is that for 2..last-1 rows performs .full(middleSeparatorConfiguration, middleSeparatorConfiguration) action, that leads to doubling separator line height --- .../Extensions/Array/Array+SeparatorRowBoxExtensions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Extensions/Array/Array+SeparatorRowBoxExtensions.swift b/Sources/Extensions/Array/Array+SeparatorRowBoxExtensions.swift index 4269be1a..3a0e8ad3 100644 --- a/Sources/Extensions/Array/Array+SeparatorRowBoxExtensions.swift +++ b/Sources/Extensions/Array/Array+SeparatorRowBoxExtensions.swift @@ -43,8 +43,8 @@ public extension Array where Element == SeparatorRowBox { case 1: first?.set(separatorType: .full(extremeSeparatorConfiguration, extremeSeparatorConfiguration)) default: - forEach { $0.set(separatorType: .full(middleSeparatorConfiguration, middleSeparatorConfiguration)) } - first?.set(separatorType: .top(extremeSeparatorConfiguration)) + forEach { $0.set(separatorType: .bottom(middleSeparatorConfiguration))} + first?.set(separatorType: .full(extremeSeparatorConfiguration, middleSeparatorConfiguration)) last?.set(separatorType: .bottom(extremeSeparatorConfiguration)) } }