Skip to content

Commit

Permalink
Merge pull request #410 from adevinta/fix/checkbox/403_text_alignment
Browse files Browse the repository at this point in the history
[Fix#403] Align top of controlView to top of text on checkbox
  • Loading branch information
jacklyn-situmorang authored Sep 1, 2023
2 parents b84d868 + 3270095 commit 79d4cf9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public final class CheckboxUIView: UIView {
self.controlViewTrailingConstraint = controlView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: padding)
self.controlViewTrailingConstraint?.isActive = true
}
let controlViewCenterConstraint = controlView.centerYAnchor.constraint(equalTo: textLabel.centerYAnchor)
let controlViewCenterConstraint = self.textLabel.heightAnchor.constraint(greaterThanOrEqualTo: self.controlView.heightAnchor)
controlViewCenterConstraint.isActive = true

self.button.addTarget(self, action: #selector(self.actionTapped(sender:)), for: .touchUpInside)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"images" : [
{
"filename" : "Path.svg",
"filename" : "check-fill.svg",
"idiom" : "universal"
}
],
Expand Down

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 79d4cf9

Please sign in to comment.