Merge pull request #126 from ef1rspb/separator_rowbox_ext

Fix doubling separator line issue
This commit is contained in:
Alexey Gerasimov 2018-04-11 16:32:35 +03:00 committed by GitHub
commit f8e9fd8973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,6 @@
# Changelog
### 0.7.7
- **Fix**: Fix doubling separator line issue
### 0.7.6

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKit"
s.version = "0.7.6"
s.version = "0.7.7"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKit"
s.license = "Apache License, Version 2.0"

View File

@ -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))
}
}