aidancb
TSDThe Swift Den
•Created by aidancb on 7/20/2023 in #swift-development
BottomSheet Problems
I am working on a bottom sheet for my code using the built in functionality of .sheet. Is there a way for you to disable the initial animation where it comes from the bottom and just have appear on screen when you open up the view.
The video I have attached in the description better highlights my question. When I open up the view, there is a second or so delay before you see the bottomsheet, I want the sheet to appear instantly when i open up the view and when I hit the back arrow, I want the bottomsheet to disappear.
@State public var isSheetPresented = true
.sheet(isPresented: $isSheetPresented) {
isRecipeView()
.presentationDetents([.medium, .large])
.presentationDragIndicator(.visible)
.presentationBackgroundInteraction(.enabled)
.interactiveDismissDisabled()
}
2 replies