並前往https://www.quora.com/How-do-I-fix-the-SwiftUI-onAppear-code-only-running-after-the-second-time-the-view-appears