nice sheet for adding contacts

This commit is contained in:
talksik
2021-12-20 04:27:18 -08:00
parent a3374050ff
commit e2f8d9d1e2
6 changed files with 45 additions and 27 deletions
@@ -8,10 +8,18 @@
import SwiftUI
import NavigationStack
enum SheetView : Identifiable {
var id: Self { self }
case contacts
case inbox
}
struct InnerCircleView: View {
@EnvironmentObject var authSessionStore: AuthSessionStore
@EnvironmentObject var navigationStack: NavigationStack
@State var sheetView: SheetView? = nil
let universalSize = UIScreen.main.bounds
var body: some View {
@@ -25,13 +33,21 @@ struct InnerCircleView: View {
// header
VStack(alignment: .leading) {
CircleNavigationView()
CircleNavigationView(sheetView: self.$sheetView)
Spacer()
}
CircleFooterView()
}
.sheet(item: self.$sheetView) {page in
switch page {
case SheetView.contacts:
ContactsPickerView()
case SheetView.inbox:
OnboardingTrioView()// test one for now
}
}
.onAppear() {
}
}