mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Use Siesta framework
This commit is contained in:
@@ -2,8 +2,8 @@ import Defaults
|
||||
import SwiftUI
|
||||
|
||||
struct ContentView: View {
|
||||
@ObservedObject private var state = AppState()
|
||||
@ObservedObject private var profile = Profile()
|
||||
@StateObject private var state = AppState()
|
||||
@StateObject private var profile = Profile()
|
||||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
@@ -16,8 +16,8 @@ struct ContentView: View {
|
||||
.tabItem { Text("Popular") }
|
||||
.tag(TabSelection.popular)
|
||||
|
||||
if state.showingChannel {
|
||||
ChannelView()
|
||||
if !state.channelID.isEmpty {
|
||||
ChannelView(id: state.channelID)
|
||||
.tabItem { Text("\(state.channel) Channel") }
|
||||
.tag(TabSelection.channel)
|
||||
}
|
||||
|
Reference in New Issue
Block a user