-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supports to sync status for multiple SDAnimatedImageView who use the …
…same image model
- Loading branch information
1 parent
b7af5e6
commit 16211f6
Showing
4 changed files
with
57 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* This file is part of the SDWebImage package. | ||
* (c) DreamPiggy <lizhuoli1126@126.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
import SwiftUI | ||
|
||
public struct AnimationGroup: EnvironmentKey { | ||
public static var defaultValue: String? { nil } | ||
} | ||
|
||
extension EnvironmentValues { | ||
public var animationGroup: String? { | ||
get { self[AnimationGroup.self] } | ||
set { self[AnimationGroup.self] = newValue } | ||
} | ||
} |