Skip to content

Commit

Permalink
fix ui corruption after adding pass to wallet (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy authored Oct 10, 2023
1 parent 24bab7e commit 56ef3bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions DuckDuckGo/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ class MainViewFactory {
let factory = MainViewFactory(superview)

factory.createViews()
factory.disableAutoresizingOnViewAndImmediateSubviews(superview)
factory.disableAutoresizingOnImmediateSubviews(superview)
factory.constrainViews()

return factory.coordinator
}

private func disableAutoresizingOnViewAndImmediateSubviews(_ view: UIView) {
view.translatesAutoresizingMaskIntoConstraints = false
private func disableAutoresizingOnImmediateSubviews(_ view: UIView) {
view.subviews.forEach {
$0.translatesAutoresizingMaskIntoConstraints = false
}
Expand Down Expand Up @@ -142,7 +141,7 @@ extension MainViewFactory {
coordinator.logoContainer.addSubview(coordinator.logoText)
superview.addSubview(coordinator.logoContainer)

disableAutoresizingOnViewAndImmediateSubviews(coordinator.logoContainer)
disableAutoresizingOnImmediateSubviews(coordinator.logoContainer)
}

}
Expand Down

0 comments on commit 56ef3bc

Please sign in to comment.