|
Hi, I really need your help. I implemented a simple view with 4 images. These images can be exchanged trough the State var. That works really good. The problem is that there is a significant lag/freeze and CPU usage of the simulator is 100% for a few seconds. All images are local and kompress to about 0.5-1.5Megabyte. I also implemented animation to transition between the image sets. I thought the lag is because of the animation and deleted it... But the lag is still there. I think it is pretty cpu intensive to render 4 images at a time but I found no easy solution to fix this problem. I've been working on this very problem for several days now and I'm getting very frustrated because I can't get it to work. I hope someone knows how to solve this problem. Thanks
|
|
Learn from HWS LessonsHave you completed the HackingWithSwift 100 Days of SwiftUI course? @twoStraws discusses this very issue in his course! What part of his lesson didn't you fully understand? Keep CodingAlso, please help us review your code by indenting it properly. Otherwise, you may not get help because your code is hard to read. |
|
@Obelix Thank you for the info. I corrected the indent. Could you specify the day where the topic is discussed? Thank you very much. |
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.