cleanup tweaks

This commit is contained in:
Hailey
2024-10-09 19:20:48 -07:00
parent 2841944789
commit 3aa9980ba5
3 changed files with 28 additions and 24 deletions
@@ -21,13 +21,11 @@ class SheetViewController: UIViewController {
}
func setDetents(contentHeight: CGFloat, preventExpansion: Bool) {
guard let sheet = self.sheetPresentationController,
let screenHeight = Util.getScreenHeight()
else {
guard let sheet = self.sheetPresentationController else {
return
}
if contentHeight > screenHeight - 100 {
if contentHeight > Util.getScreenHeight() - 100 {
sheet.detents = [
.large()
]