The action of the button toggles the state variable. To tell SwiftUI you want to display a modal, you call sheet(isPresented:onDismiss:content:) .
確定! 回上一頁