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)
})
}
}
}
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi all,
I am working on building a new app and I am having trouble coming up with the code necessary for someone to upload a file in app. Does anyone know how to build something where the app user can upload a file which goes to the firebase database? Or anywhere where I can learn this?