
新增Package.swift和Package.resolved文件以支持Swift Package管理,创建API相关文件(API.swift、APICaller.swift、APIConstants.swift、APIEndpoints.swift、APIService.swift、APILogger.swift、APIModels.swift、Integration-Guide.md)以实现API请求管理和网络交互功能,增强项目的功能性和可扩展性。同时更新.gitignore以排除构建文件和临时文件。
37 lines
807 B
Swift
37 lines
807 B
Swift
//
|
|
// yanaApp.swift
|
|
// yana
|
|
//
|
|
// Created by P on 2025/4/21.
|
|
//
|
|
|
|
import SwiftUI
|
|
import ComposableArchitecture
|
|
|
|
@main
|
|
struct yanaApp: App {
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView(
|
|
store: Store(
|
|
initialState: LoginFeature.State()
|
|
) {
|
|
LoginFeature()
|
|
},
|
|
initStore: Store(
|
|
initialState: InitFeature.State()
|
|
) {
|
|
InitFeature()
|
|
},
|
|
configStore: Store(
|
|
initialState: ConfigFeature.State()
|
|
) {
|
|
ConfigFeature()
|
|
}
|
|
)
|
|
}
|
|
}
|
|
}
|