diff --git a/nirvana-ios/Views/InnerCircle/CircleGridView.swift b/nirvana-ios/Views/InnerCircle/CircleGridView.swift index 0f99ecf..cfc8163 100644 --- a/nirvana-ios/Views/InnerCircle/CircleGridView.swift +++ b/nirvana-ios/Views/InnerCircle/CircleGridView.swift @@ -35,9 +35,9 @@ struct CircleGridView: View { @Binding var selectedFriendIndex: String? private let big:CGFloat = 1 - private let medium:CGFloat = 0.75 - private let small:CGFloat = 0.5 - private let supersmall:CGFloat = 0.3 + private let medium:CGFloat = 0.9 + private let small:CGFloat = 0.8 + private let supersmall:CGFloat = 0.7 // TODO: centered honeycomb + side: maybe have two honeycombs: one in the center of 7 people and then everyone else surrounding // TODO: maybe make our "center" offset to a little to the top left to make it more honeycomb from top left @@ -49,8 +49,11 @@ struct CircleGridView: View { // main communication hub // TODO: client side, sort the honeycomb from top left to bottom right // based on most close friends to least + + // MARK: data entry point let activeFriends = self.authSessionStore.getActiveFriendIds() let inboxUsers = self.authSessionStore.getInboxUsersIds() + ScrollViewReader {scrollReaderValue in ScrollView([.horizontal, .vertical], showsIndicators: false) { LazyVGrid( @@ -141,34 +144,28 @@ struct CircleGridView: View { .animation(Animation.spring()) } -// ForEach(Array(self.authSessionStore.getInboxUsersIds.enumerated()), id: \.offset) { inboxValue, inboxUser in -// for (inboxValue, inboxUserId) in inboxUsers.enumerated() { + // inbox users ForEach(0.. CGFloat { + private func getScale(proxy: GeometryProxy, itemNumber: Int, userId: String?) -> CGFloat { // if this user is selected - if userId == self.selectedFriendIndex { + if userId != nil && userId == self.selectedFriendIndex { return big + 0.2 }