Skip to content

Commit

Permalink
Overall Fixes (#129)
Browse files Browse the repository at this point in the history
* blurEffectStyle was not set in the init

* Fix incorrect bottom offset
  • Loading branch information
AndreaMiotto committed Sep 20, 2021
1 parent f912cfc commit 422d748
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions Sources/PartialSheet/PartialSheetStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public struct PartialSheetStyle {
self.coverColor = coverColor
self.cornerRadius = cornerRadius
self.minTopDistance = minTopDistance
self.blurEffectStyle = blurEffectStyle
}
}

Expand Down
4 changes: 1 addition & 3 deletions Sources/PartialSheet/PartialSheetViewModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ struct PartialSheet: ViewModifier {
/// The point for the top anchor
private var topAnchor: CGFloat {
let topSafeArea = (UIApplication.shared.windows.first?.safeAreaInsets.top ?? 0)
let bottomSafeArea = (UIApplication.shared.windows.first?.safeAreaInsets.bottom ?? 0)

let calculatedTop =
presenterContentRect.height +
topSafeArea +
bottomSafeArea -
topSafeArea -
sheetContentRect.height -
handlerSectionHeight

Expand Down

0 comments on commit 422d748

Please sign in to comment.