MainViewController: bottom safe area inset
TestFlight / Build and upload (push) Successful in 1m21s

This commit is contained in:
2026-07-27 20:51:39 -07:00
parent 50e5f80a44
commit fe6ce3a91c
2 changed files with 18 additions and 2 deletions
@@ -138,10 +138,13 @@ class MainViewController: UIViewController, SwitchesViewControllerDelegate, Serv
width: bodyBounds.width - visualizationFrame.width,
height: bodyBounds.height
)
let audioHeight = min(
let audioContentHeight = min(
AudioSectionView.preferredHeight(forWidth: rightColumnFrame.width),
bodyBounds.height * 0.22
)
let audioBottomInset = view.safeAreaInsets.bottom
let audioHeight = audioContentHeight + audioBottomInset
_audioSectionView.bottomContentInset = audioBottomInset
_switchesController.view.frame = CGRect(
x: rightColumnFrame.minX,
y: rightColumnFrame.minY,
@@ -164,6 +167,7 @@ class MainViewController: UIViewController, SwitchesViewControllerDelegate, Serv
let switchesHeight = bodyBounds.height - audioHeight - lightsHeight - (sectionSpacing * 2.0)
_visualizationController.view.frame = .zero
_audioSectionView.bottomContentInset = 0.0
_switchesController.view.frame = CGRect(
x: bodyBounds.minX,
y: bodyBounds.minY,