mirror of
https://github.com/easychen/pushdeer.git
synced 2024-09-21 04:04:21 +08:00
27 lines
600 B
Swift
27 lines
600 B
Swift
//
|
||
// PushDeerApp.swift
|
||
// PushDeer
|
||
//
|
||
// Created by Easy on 2021/11/30.
|
||
//
|
||
|
||
import SwiftUI
|
||
import UserNotifications
|
||
|
||
@main
|
||
struct PushDeerApp: App {
|
||
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
||
|
||
// 初始化 store 对象,传递到环境中
|
||
@StateObject private var store = AppState()
|
||
|
||
var body: some Scene {
|
||
WindowGroup {
|
||
ContentView().environmentObject(store).onAppear(perform: {
|
||
// appDelegate.device_token = "888"
|
||
// print( AppDelegate.device_token + "pushdeer")
|
||
})
|
||
}
|
||
}
|
||
}
|