@@ -50,10 +50,10 @@ class ColorPickerCell: UICollectionViewCell {
50
50
51
51
// Setup constraints to checkbox
52
52
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 ) )
57
57
}
58
58
59
59
}
0 commit comments