Skip to content

Commit adc2a3a

Browse files
author
Arnaud Lays
committed
Reduce checkBox insets
1 parent 646e199 commit adc2a3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

IGColorPicker/Classes/View/ColorPickerCell.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ class ColorPickerCell: UICollectionViewCell {
5050

5151
// Setup constraints to checkbox
5252
checkbox.translatesAutoresizingMaskIntoConstraints = false
53-
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .top, relatedBy: .equal, toItem: self, attribute: .top, multiplier: 1.0, constant: 14))
54-
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .leading, relatedBy: .equal, toItem: self, attribute: .leading, multiplier: 1.0, constant: 14))
55-
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .bottom, relatedBy: .equal, toItem: self, attribute: .bottom, multiplier: 1.0, constant: -14))
56-
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .trailing, relatedBy: .equal, toItem: self, attribute: .trailing, multiplier: 1.0, constant: -14))
53+
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .top, relatedBy: .equal, toItem: self, attribute: .top, multiplier: 1.0, constant: 0))
54+
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .leading, relatedBy: .equal, toItem: self, attribute: .leading, multiplier: 1.0, constant: 0))
55+
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .bottom, relatedBy: .equal, toItem: self, attribute: .bottom, multiplier: 1.0, constant: 0))
56+
self.addConstraint(NSLayoutConstraint(item: checkbox, attribute: .trailing, relatedBy: .equal, toItem: self, attribute: .trailing, multiplier: 1.0, constant: 0))
5757
}
5858

5959
}

0 commit comments

Comments
 (0)