Skip to content

Commit 72374f9

Browse files
committed
fixed dropdown right icon displaying issue
1 parent 79f876d commit 72374f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

iOSFormUtils/DropDown.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@ open class DropDown: OwnView {
6363
self.addSubview(self.titleTextField)
6464

6565
rightIcon = UIImageView(frame: CGRect())
66+
rightIcon.contentMode = UIViewContentMode.center
6667
self.addSubview(rightIcon)
67-
68+
6869
mainButton = UIButton(type: .custom)
6970
mainButton.addTarget(self, action: #selector(DropDown.mainButtonTouched(_:)), for: .touchUpInside)
7071
self.addSubview(mainButton)
71-
72+
7273
titleTextField.snp.makeConstraints { make in
7374
make.leading.equalTo(self.snp.leading)
7475
make.height.equalTo(self)
@@ -79,6 +80,7 @@ open class DropDown: OwnView {
7980
make.trailing.equalTo(self)
8081
make.height.equalTo(self)
8182
make.width.equalTo(self.snp.height)
83+
make.centerY.equalTo(self)
8284
}
8385
mainButton.snp.makeConstraints { maker in
8486
maker.edges.equalTo(self)

0 commit comments

Comments
 (0)