Skip to content

Commit 5ba0ea7

Browse files
committed
Fix version check banner layout after migration to iOS 15.
1 parent 8d3496d commit 5ba0ea7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Riot/Modules/Home/VersionCheck/HomeViewControllerWithBannerWrapperViewController.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,14 @@ class HomeViewControllerWithBannerWrapperViewController: UIViewController, MXKVi
4141
override func viewDidLoad() {
4242
super.viewDidLoad()
4343

44-
homeViewController.willMove(toParent: self)
45-
4644
view.backgroundColor = .clear
4745

4846
stackView = UIStackView()
4947
stackView.axis = .vertical
5048
stackView.distribution = .fill
5149
stackView.alignment = .fill
5250

53-
view.vc_addSubViewMatchingParent(stackView)
51+
view.vc_addSubViewMatchingParentSafeArea(stackView)
5452

5553
addChild(homeViewController)
5654
stackView.addArrangedSubview(homeViewController.view)

0 commit comments

Comments
 (0)