~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/atirc-ios-client

0
1
main
22 lines · 380 B Raw History
//
//  AT_IRCApp.swift
//  AT-IRC
//

import SwiftUI

@main
struct AT_IRCApp: App {
    @Environment(\.scenePhase) private var scenePhase

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
        .onChange(of: scenePhase) { _, phase in
            if phase != .active {
                KCPHost.persistSnapshot()
            }
        }
    }
}