.presentationBackground(.thinMaterial) // 模糊效果 .presentationBackground(.yellow) // 设置颜色 .presentationCornerRadius(8) // 圆角 // When it first appears, the bottom sheet is displayed in medium size. You can expand it to large size by dragging the sheet. .presentationDetents([.medium, .large]) // supports 4 different sizes including: around 10% of the screen height;a fixed height of 200 points;the standard Medium and Large sizes .presentationDetents([.fraction(0.1), .height(200), .medium, .large]) .presentationDragIndicator(.hidden) // 隐藏指示器 .presentationDragIndicator(.visible)