What you can do is create a performance whose height is equal to the height of the screen with a button at the top equal to the song that is currently playing in the music application.
set the limit so that it displays only the button, when the button is pressed, the animation is limited to 0
Initially hide the down arrow once, the view will fully stretch the down arrow and hide the original button
config BOOL to check the expansion or compression state, or to do this via button.selected state
source
share