Skip to content

Commit

Permalink
Fix #101 (thx @grandsir)
Browse files Browse the repository at this point in the history
replaces #123
  • Loading branch information
lucaszischka committed Jun 26, 2023
1 parent 37f4d16 commit 205994f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
BottomSheet Changelog
==================

#### v3.1.1
- Fix #101 (thx @grandsir)

#### v3.1.0
- Added the `.enableAccountingForKeyboardHeight(Bool)` modifier #97
- Added the `.enableFloatingIPadSheet(Bool)` modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ internal extension BottomSheetView {
)
})
// Make it borderless for Mac
.buttonStyle(.borderless)
.buttonStyle(.borderless)
// Disable animation
.transaction { t in
t.disablesAnimations = true
}
}

func bottomSheetContent(with geometry: GeometryProxy) -> some View {
Expand Down Expand Up @@ -328,14 +332,14 @@ internal extension BottomSheetView {
bundle: Bundle.module
)
// Design of the close button
.resizable()
.renderingMode(.template)
.foregroundColor(.tertiaryLabel)
.scaledToFit()
.frame(
width: 30,
height: 30
)
.resizable()
.renderingMode(.template)
.foregroundColor(.tertiaryLabel)
.scaledToFit()
.frame(
width: 30,
height: 30
)
}
// Make it borderless for Mac
.buttonStyle(.borderless)
Expand Down

0 comments on commit 205994f

Please sign in to comment.