SwiftUI: Run code when window closed macOS

前端 未结 0 506
清酒与你
清酒与你 2020-12-17 04:27

I have opened my window in the traditional way, but I want to run some code when the window is closed by clicking the close box (red button). Is there a good way of doing th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题