Post

Replies

Boosts

Views

Activity

Infinitely unresponsive view upon pressing navigation link
Upon clicking a navigation link within the for each loop in the scrollview, the app becomes unresponsive and the CPU jumps to 150% and memory usage infinitely increases. I have tried multiple different navigation destinations for the button and it is the same result. if keyword == "" { Image("Circle") .resizable().aspectRatio(contentMode: .fit) .frame(width: 100, height: 100) .rotationEffect(.degrees(zRotateAnimation ? 360 : 0)) .animation(Animation.linear(duration: 50).speed(5) .repeatForever(autoreverses: true), value: self.zRotateAnimation) .padding() .onAppear() { self.zRotateAnimation.toggle() } } LazyVStack{ ForEach(userLookup.queriedUsers, id: \.id) { user in NavigationLink(destination: {profileView(user: user)}, label: { profileBarView(user: user) }) } } }
0
0
336
May ’23