Skip to content

Commit

Permalink
Merge pull request ParkGwangBeom#1 from KimTaeHyeong17/Ipad_screenSize
Browse files Browse the repository at this point in the history
ipad screenHeight κ³„μ‚°μ‹œ 항상 fullScreen κΈ°μ€€μœΌλ‘œ κ³„μ‚°λ˜λŠ” 였λ₯˜ μˆ˜μ •
  • Loading branch information
grayjang authored Feb 19, 2024
2 parents 3652d1c + d2b7edd commit bec7c05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Controller/SheetContentsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private extension SheetContentsViewController {
let bottomToolBarHeight: CGFloat = isToolBarHidden ? UIEdgeInsets.safeAreaInsets.bottom : SheetManager.shared.options.sheetToolBarHeight + UIEdgeInsets.safeAreaInsets.bottom
collectionView?.layoutIfNeeded()

let screenHeight = UIScreen.main.bounds.height
let screenHeight = (UIApplication.shared.connectedScenes.first as? UIWindowScene)?.coordinateSpace.bounds.size.height ?? UIScreen.main.bounds.height
let contentHeight = collectionView?.contentSize.height ?? 0
let visibleHeight = min(contentHeight - layout.settings.topMargin, visibleContentsHeight)
topMargin = isFullScreenContent ? 0 : max(screenHeight - layout.settings.minTopMargin - visibleHeight - bottomToolBarHeight, 0)
Expand Down

0 comments on commit bec7c05

Please sign in to comment.