Skip to content

Commit

Permalink
리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
KimTaeHyeong17 committed Jul 2, 2024
1 parent b3eff09 commit 8aeb7a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions Sources/Controller/SheetContentsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ open class SheetContentsViewController: UICollectionViewController, SheetContent

public var topMargin: CGFloat = 0

public var sheetTopGradientViewHeight: CGFloat {
guard options.useSheetTopGradientView else { return 0 }
return 56.0 + statusBarHeight
open var sheetTopGradientViewHeight: CGFloat? {
return nil
}

private var statusBarHeight: CGFloat {
Expand Down Expand Up @@ -165,7 +164,7 @@ private extension SheetContentsViewController {
}

func setupTopGradientView() {
guard sheetTopGradientViewHeight > 0 else { return }
guard let sheetTopGradientViewHeight else { return }
sheetTopGradientView = SheetGradientView(frame: CGRect(x: 0, y: 0, width: view.bounds.width, height: sheetTopGradientViewHeight))
guard let sheetTopGradientView else { return }
let backgroundColor = options.dimmingViewBackgroundColor
Expand Down
3 changes: 0 additions & 3 deletions Sources/Manager/SheetOptions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ public struct SheetOptions {

/// sheet background color
public var sheetBackgroundColor: UIColor = .white

/// sheet top area gradient background view
public var useSheetTopGradientView = true
}

public struct SheetAnimationOption {
Expand Down

0 comments on commit 8aeb7a1

Please sign in to comment.