pushdeer/ios/Prototype_version/PushDeer/PushDeerApp.swift
2021-12-23 00:19:55 +08:00

27 lines
600 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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")
})
}
}
}