Digital ACT191 story ONEAPP-6682 changes for error icon
This commit is contained in:
parent
e319153ac6
commit
967eed9522
@ -59,7 +59,7 @@ open class EntryFieldBase: Control, Changeable {
|
|||||||
return UIStackView().with {
|
return UIStackView().with {
|
||||||
$0.translatesAutoresizingMaskIntoConstraints = false
|
$0.translatesAutoresizingMaskIntoConstraints = false
|
||||||
$0.axis = .horizontal
|
$0.axis = .horizontal
|
||||||
$0.distribution = .fillProportionally
|
$0.distribution = .fill
|
||||||
$0.alignment = .top
|
$0.alignment = .top
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
@ -198,7 +198,7 @@ open class EntryFieldBase: Control, Changeable {
|
|||||||
|
|
||||||
//create the wrapping view
|
//create the wrapping view
|
||||||
heightConstraint = containerView.heightAnchor.constraint(greaterThanOrEqualToConstant: containerSize.height)
|
heightConstraint = containerView.heightAnchor.constraint(greaterThanOrEqualToConstant: containerSize.height)
|
||||||
widthConstraint?.priority = .defaultHigh
|
heightConstraint?.priority = .defaultHigh
|
||||||
heightConstraint?.isActive = true
|
heightConstraint?.isActive = true
|
||||||
|
|
||||||
widthConstraint = containerView.widthAnchor.constraint(equalToConstant: 0)
|
widthConstraint = containerView.widthAnchor.constraint(equalToConstant: 0)
|
||||||
@ -212,11 +212,12 @@ open class EntryFieldBase: Control, Changeable {
|
|||||||
//this is the horizontal stack that contains
|
//this is the horizontal stack that contains
|
||||||
//the left, InputContainer, Icons, Buttons
|
//the left, InputContainer, Icons, Buttons
|
||||||
container.addSubview(containerStackView)
|
container.addSubview(containerStackView)
|
||||||
containerStackView.pinToSuperView(.uniform(12))
|
containerStackView.pinToSuperView(.uniform(VDSFormControls.spaceInset))
|
||||||
|
|
||||||
//add the view to add input fields
|
//add the view to add input fields
|
||||||
containerStackView.addArrangedSubview(controlContainerView)
|
containerStackView.addArrangedSubview(controlContainerView)
|
||||||
containerStackView.addArrangedSubview(icon)
|
containerStackView.addArrangedSubview(icon)
|
||||||
|
containerStackView.setCustomSpacing(VDSLayout.Spacing.space3X.value, after: controlContainerView)
|
||||||
|
|
||||||
//get the container this is what show helper text, error text
|
//get the container this is what show helper text, error text
|
||||||
//can include other for character count, max length
|
//can include other for character count, max length
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user