Skip to content
Discussion options

You must be logged in to vote

Hi!

You just need to set var bottomSheetPosition to .middle for open state and to .hidden for close state

Example:

Button {
    withAnimation {
        bottomSheetPosition = .middle
    }
} label: {
    Image("add")
        .resizable()
        .scaledToFit()
        .frame(width: 24, height: 24)
}

Hope it helps

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tciuro
Comment options

Answer selected by lucaszischka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #64 on June 26, 2022 20:15.