友盟 SDK 改为隐私同意后再初始化;宣传页标签新增滑块位移动画,超过 5 个时选中项自动滚动居中。 Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
745 B
Swift
31 lines
745 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()
|
||
}
|
||
|
||
var body: some Scene {
|
||
WindowGroup {
|
||
RootView()
|
||
.onOpenURL { url in
|
||
WeChatManager.shared.handleOpenURL(url)
|
||
}
|
||
.onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { userActivity in
|
||
_ = WeChatManager.shared.handleContinueUserActivity(userActivity)
|
||
}
|
||
}
|
||
}
|
||
}
|