markiv / SwiftUI-Shimmer

Shimmer is a super-light modifier that adds a shimmering effect to any SwiftUI View, for example, to show that an operation is in progress. It works well on light and dark modes, and across iOS, macOS, tvOS, watchOS and visionOS.
MIT License
1.04k stars 60 forks source link

Spikes CPU and leads to a crash on iOS 17 #15

Closed Rspoon3 closed 9 months ago

Rspoon3 commented 9 months ago

If you run the most basic example of this project on iOS 17, the CPU spikes and eventually leads to the application crashing. Perhaps this is because under the hood it is using AnimatableModifier, which is now deprecated.

struct ContentView: View {
    var body: some View {
        Text("Testing")
            .shimmering()
    }
}
Screenshot 2023-09-26 at 8 29 07 AM
Rspoon3 commented 9 months ago

This occurred because of of a local Shimmer.swift file that was in the project. Does not seem to be an issue with this library.