You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* For the full copyright and license information, please view the LICENSE
6
+
* file that was distributed with this source code.
7
+
*/
8
+
9
+
import SwiftUI
10
+
import SDWebImage
11
+
12
+
/// A Image observable object for handle aniamted image playback. This is used to avoid `@State` update may capture the View struct type and cause memory leak.
/// Provide a max buffer size by bytes. This is used to adjust frame buffer count and can be useful when the decoding cost is expensive (such as Animated WebP software decoding). Default is nil.
@@ -384,19 +353,17 @@ extension WebImage {
384
353
/// `UInt.max` means cache all the buffer. (Lowest CPU and Highest Memory)
/// The runLoopMode when animation is playing on. Defaults is `.common`
393
361
/// You can specify a runloop mode to let it rendering.
394
362
/// - Note: This is useful for some cases, for example, always specify NSDefaultRunLoopMode, if you want to pause the animation when user scroll (for Mac user, drag the mouse or touchpad)
395
363
/// - Parameter runLoopMode: The runLoopMode for animation
/// Whether or not to pause the animation (keep current frame), instead of stop the animation (frame index reset to 0). When `isAnimating` binding value changed to false. Defaults is true.
@@ -425,9 +392,8 @@ extension WebImage {
425
392
/// `< 0.0` is not supported currently and stop animation. (may support reverse playback in the future)
426
393
/// - Parameter playbackRate: The animation playback rate.
0 commit comments