Merge pull request #3731 from dreampiggy/project/UIImage_subclass_nonisolated

Use the new macro from Swift compiler and SDK to mark the UIImage/UIImageView subclass matching what they designed to be
This commit is contained in:
DreamPiggy 2024-07-23 14:31:28 +08:00 committed by GitHub
commit b26c9623f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@
/**
The image class which supports animating on `SDAnimatedImageView`. You can also use it on normal UIImageView/NSImageView.
*/
NS_SWIFT_NONISOLATED
@interface SDAnimatedImage : UIImage <SDAnimatedImage>
// This class override these methods from UIImage(NSImage), and it supports NSSecureCoding.

View File

@ -19,6 +19,7 @@
For UIKit: use `-startAnimating`, `-stopAnimating` to control animating. `isAnimating` to check animation state.
For AppKit: use `-setAnimates:` to control animating, `animates` to check animation state. This view is layer-backed.
*/
NS_SWIFT_UI_ACTOR
@interface SDAnimatedImageView : UIImageView
/**
The internal animation player.