2020-11-05から1日間の記事一覧
@main struct SomeApp: App { @Environment(\.scenePhase) private var scenePhase var body: some Scene { WindowGroup { ContentView() }.onChange(of: scenePhase) { (phase) in switch phase { case .active: // The scene is in the foreground and int…