Skip to content

Commit

Permalink
Update layout of form views to use layoutMarginsGuide
Browse files Browse the repository at this point in the history
  • Loading branch information
nauaros committed Feb 26, 2025
1 parent a9ffebf commit f46df1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Adyen/UI/Form/Items/Text/FormTextItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ open class FormTextItemView<ItemType: FormTextItem>: FormValidatableValueItemVie
override open func configureSeparatorView() {
let constraints = [
separatorView.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor),
separatorView.trailingAnchor.constraint(equalTo: trailingAnchor),
separatorView.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
separatorView.heightAnchor.constraint(equalToConstant: 1.0)
]

Expand Down
2 changes: 1 addition & 1 deletion Adyen/UI/Form/Items/Value/FormValueItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ open class FormValueItemView<ValueType, Style, ItemType: FormValueItem<ValueType
open func configureSeparatorView() {
let constraints = [
separatorView.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor),
separatorView.trailingAnchor.constraint(equalTo: trailingAnchor),
separatorView.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
separatorView.bottomAnchor.constraint(equalTo: bottomAnchor),
separatorView.heightAnchor.constraint(equalToConstant: 1.0)
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ open class FormValidatableValueItemView<ValueType, ItemType: FormValidatableValu
override open func configureSeparatorView() {
let constraints = [
separatorView.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor),
separatorView.trailingAnchor.constraint(equalTo: trailingAnchor),
separatorView.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
separatorView.heightAnchor.constraint(equalToConstant: 1.0)
]

Expand Down

0 comments on commit f46df1b

Please sign in to comment.