adding routing for the inbox sheet

This commit is contained in:
talksik
2021-12-20 04:35:02 -08:00
parent e2f8d9d1e2
commit 7039fe63b1
4 changed files with 38 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
//
// InboxView.swift
// nirvana-ios
//
// Created by Arjun Patel on 12/20/21.
//
import SwiftUI
struct InboxView: View {
var body: some View {
Text("This is the inbox where you can see a bunch of inboxes")
//TODO: add illustration if there is no one in inbox, but have button to open sheet for contacts with the sheet view object
}
}
struct InboxView_Previews: PreviewProvider {
static var previews: some View {
InboxView()
}
}
@@ -19,6 +19,7 @@ struct CircleNavigationView: View {
Menu {
Button(role: .destructive) {
print("manage inbox")
self.sheetView = .inbox
} label: {
Label("inbox", systemImage: "envelope.badge")
.foregroundColor(NirvanaColor.teal)
@@ -45,8 +45,11 @@ struct InnerCircleView: View {
case SheetView.contacts:
ContactsPickerView()
case SheetView.inbox:
OnboardingTrioView()// test one for now
InboxView()// test one for now
default:
Text("asdf")
}
}
.onAppear() {
}