From 566574542f10baf94d42b72edf0cfa7832830e26 Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 23 Dec 2021 02:27:56 -0800 Subject: [PATCH] starting small adjustments with whole flow with a new user --- .../Views/InnerCircle/CircleGridView.swift | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nirvana-ios/Views/InnerCircle/CircleGridView.swift b/nirvana-ios/Views/InnerCircle/CircleGridView.swift index ead337f..76c3b0d 100644 --- a/nirvana-ios/Views/InnerCircle/CircleGridView.swift +++ b/nirvana-ios/Views/InnerCircle/CircleGridView.swift @@ -19,6 +19,18 @@ struct CircleGridView: View { let universalSize = UIScreen.main.bounds + var body: some View { + if self.authSessionStore.user?.nickname == nil || self.authSessionStore.user?.avatar == nil { + + } + else if self.authSessionStore.friendsArr.count < 0 { + + } else { + gridContent + } + + } + // magic variables for grid // TODO: make the top left person or one horizontal person be in the center of screen...makes the top honeycomb pop private static var numberOfItems: Int = 12 @@ -43,10 +55,6 @@ struct CircleGridView: View { // TODO: maybe make our "center" offset to a little to the top left to make it more honeycomb from top left private let center: CGPoint = CGPoint(x: UIScreen.main.bounds.width*0.5,y: UIScreen.main.bounds.height*0.5) - var body: some View { - gridContent - } - let longPressMinDuration = 0.5 private var gridContent: some View {