Skip to content

Commit

Permalink
Set no margins for separator with selectable options.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartłomiej Semańczyk committed Jun 27, 2016
1 parent 879bfcf commit 71c9e74
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BSSelectableView.podspec
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|

s.name = 'BSSelectableView'
s.version = '0.4'
s.version = '0.5'
s.summary = 'Easily manage your token along with your single or multiply select view.'
s.description = "Looking for simple Swift library to manage multiply or single selection? This one is for you:)"

Expand Down
1 change: 1 addition & 0 deletions BSSelectableView/Classes/BSMultiSelectableView.swift
Expand Up @@ -62,6 +62,7 @@
cell.tintColor = BSSelectableView.tintColorForSelectedOption
cell.titleLabel.font = BSSelectableView.fontForOption
cell.titleLabel.textColor = BSSelectableView.titleColorForOption
cell.layoutMargins = UIEdgeInsetsZero

return cell
}
Expand Down
2 changes: 2 additions & 0 deletions BSSelectableView/Classes/BSSelectableView.swift
Expand Up @@ -100,6 +100,8 @@ public class BSSelectableView: UIView {
tableView.translatesAutoresizingMaskIntoConstraints = false
tableView.bounces = false
tableView.rowHeight = 40
tableView.separatorInset = UIEdgeInsetsZero
tableView.layoutMargins = UIEdgeInsetsZero

let nib = UINib(nibName: "BSSelectableTableViewCell", bundle: NSBundle(forClass: BSSelectableTableViewCell.classForCoder()))
tableView.registerNib(nib, forCellReuseIdentifier: BSSelectableTableViewCellIdentifier)
Expand Down
3 changes: 2 additions & 1 deletion BSSelectableView/Classes/BSSingleSelectableView.swift
Expand Up @@ -60,7 +60,8 @@
cell.accessoryType = option?.identifier == selectedOption?.identifier ? .Checkmark : .None
cell.tintColor = BSSelectableView.tintColorForSelectedOption
cell.titleLabel.font = BSSelectableView.fontForOption
cell.titleLabel.textColor = option?.identifier == selectedOption?.identifier ? BSSelectableView.tintColorForSelectedOption : BSSelectableView.titleColorForOption
cell.titleLabel.textColor = option?.identifier == selectedOption?.identifier ? BSSelectableView.titleColorForSelectedOption : BSSelectableView.titleColorForOption
cell.layoutMargins = UIEdgeInsetsZero

return cell
}
Expand Down
Binary file not shown.

0 comments on commit 71c9e74

Please sign in to comment.