持久化服务端 expired 过期时间戳以正确恢复倒计时,切换在线/离线与上报时展示定位 Loading,移除重复的成功 Alert,并将 Toast 调整为居中半透明样式。 Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
497 B
Swift
26 lines
497 B
Swift
//
|
||
// suixinkanApp.swift
|
||
// suixinkan
|
||
//
|
||
// Created by hanqiu on 2026/6/18.
|
||
//
|
||
|
||
import SwiftUI
|
||
|
||
/// 应用入口实体,负责把 SwiftUI 根视图挂载到主窗口。
|
||
@main
|
||
struct suixinkanApp: App {
|
||
@UIApplicationDelegateAdaptor(AppDelegate.self) private var appDelegate
|
||
|
||
init() {
|
||
AppUITestLaunchState.resetIfNeeded()
|
||
AMapBootstrap.configure(apiKey: AMapConfig.apiKey)
|
||
}
|
||
|
||
var body: some Scene {
|
||
WindowGroup {
|
||
RootView()
|
||
}
|
||
}
|
||
}
|