Closed MADRAFi closed 1 year ago
I will look into it soon.
Hello @MADRAFi, I just tested it with your exact provided code and can not reproduce it. The sheet is dismissed as expected. Also no-one else seemed to have this issue. Therefore im closing it for now.
Describe the bug When Content View contains Large content ( for the whole view) or Spacer() the displayed Close circle does not dismiss the bottom sheet window
Minimal reproduce-able code
.bottomSheet( bottomSheetPosition: $bottomSheetPosition, switchablePositions: [.dynamic], headerContent: { VStack(alignment: .leading) { Text("chosenlocation") .font(.title) .bold() if bottomSheetPosition == .dynamicBottom { Text("50° 21°") .font(.subheadline) .foregroundColor(.secondary) }
struct WaypointInfo: View {
// Bellow code will cause sheet to not be able to dismiss after pressing close button Spacer() } }
Expected behavior I expect that window can be dismissed regardless of the content.
Screenshots If applicable, add screenshots to help explain your problem.
Target version
Additional context Add any other context about the problem here.