navigate user to the proper page for adding contacts

This commit is contained in:
talksik
2021-12-24 23:26:32 -08:00
parent bb68b6596a
commit 70b869f08d
@@ -187,20 +187,24 @@ struct CircleGridView: View {
// stale state for adding a contact // stale state for adding a contact
let staleAdjustedValue = activeFriends.count + inboxUsers.count let staleAdjustedValue = activeFriends.count + inboxUsers.count
GeometryReader {gridProxy in GeometryReader {gridProxy in
let scale = getScale(proxy: gridProxy, itemNumber: staleAdjustedValue, userId: nil) * 0.5 // adjusting size as stale states should be the smallest let scale = getScale(proxy: gridProxy, itemNumber: staleAdjustedValue, userId: nil) * 0.75 // adjusting size as stale states should be the smallest
Button {
self.navigationStack.push(FindFriendsView())
} label: {
ZStack {
Image(systemName: "person.badge.plus")
.foregroundColor(NirvanaColor.dimTeal)
.font(.largeTitle)
ZStack { Circle()
Image(systemName: "person.badge.plus") .foregroundColor(Color.white.opacity(0.2))
.foregroundColor(NirvanaColor.teal) .blur(radius: 8)
.font(.largeTitle) .cornerRadius(100)
}
Circle() .scaleEffect(scale)
.foregroundColor(Color.white.opacity(0.2)) .padding(scale * 5)
.blur(radius: 8)
.cornerRadius(100)
} }
.scaleEffect(scale)
.padding(scale * 5)
} // geometry reader } // geometry reader
.offset( .offset(
x: honeycombOffSetX(staleAdjustedValue), x: honeycombOffSetX(staleAdjustedValue),
@@ -208,11 +212,6 @@ struct CircleGridView: View {
) )
.id(UUID().uuidString) // id for scrollviewreader .id(UUID().uuidString) // id for scrollviewreader
.frame(height: Self.size) .frame(height: Self.size)
.onTapGesture {
// action to open alert to add this person to circle or reject
// create user_friend with isActive = false
}
.animation(Animation.spring()) .animation(Animation.spring())