@Claude31 Thanks for the answer.
And I found out there is another workaround for this.
We can add ".zIndex(1)" to the button.
Topic:
UI Frameworks
SubTopic:
SwiftUI