mirror of
https://github.com/easychen/pushdeer.git
synced 2024-11-15 23:09:25 +08:00
28 lines
398 B
Swift
28 lines
398 B
Swift
//
|
|
// ContentView.swift
|
|
// PushDeer
|
|
//
|
|
// Created by HEXT on 2021/12/25.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
|
|
@EnvironmentObject private var store: AppState
|
|
|
|
var body: some View {
|
|
if store.token.isEmpty {
|
|
LoginView()
|
|
} else {
|
|
MainView()
|
|
}
|
|
}
|
|
}
|
|
|
|
struct ContentView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ContentView()
|
|
}
|
|
}
|