You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem when using left to right (arabic) view. If i put trailing on UITextField, arabic text is starting from left side.
If i remove trailing, then it's changing to left-to-right
textField.snp.makeConstraints { (make) in
make.leading.equalTo(imageView.snp.trailing).offset(Margins.standard)
make.trailing.equalToSuperview().inset(Margins.big)
make.top.equalToSuperview().offset(40.0)
make.bottom.equalTo(separatorView.snp.top).offset(-Margins.tiny)
}
imageView.snp.makeConstraints { (make) in
make.leading.equalToSuperview().offset(Margins.big)
make.height.width.equalTo(Constants.imageSize)
make.bottom.equalTo(textField).offset(-Margins.small)
}
separatorView.snp.makeConstraints { (make) in
make.bottom.equalToSuperview()
make.leading.equalTo(imageView.snp.trailing).offset(Margins.standard)
make.trailing.equalTo(textField.snp.trailing)
make.height.equalTo(1)
}
The text was updated successfully, but these errors were encountered:
@nikolafamit does this work if you use normal NSLayoutConstraint api's? We only translate our calls into those so I can't see why SnapKit would be causing this issue directly.
Might be equalToSuperview could try to be explicit equalTo(superview.snp.leading) etc…?
New Issue Checklist
🚫 If this template is not filled out your issue will be closed with no comment. 🚫
Issue Info
Issue Description
I have a problem when using left to right (arabic) view. If i put trailing on UITextField, arabic text is starting from left side.
If i remove trailing, then it's changing to left-to-right
The text was updated successfully, but these errors were encountered: