...
|
...
|
@@ -31,7 +31,7 @@ |
|
|
+ (SDWebImageTransition *)fadeTransition {
|
|
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
|
|
#if SD_UIKIT
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionCrossDissolve;
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionCrossDissolve | UIViewAnimationOptionAllowUserInteraction;
|
|
|
#else
|
|
|
transition.animations = ^(__kindof NSView * _Nonnull view, NSImage * _Nullable image) {
|
|
|
CATransition *trans = [CATransition animation];
|
...
|
...
|
@@ -45,7 +45,7 @@ |
|
|
+ (SDWebImageTransition *)flipFromLeftTransition {
|
|
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
|
|
#if SD_UIKIT
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromLeft;
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromLeft | UIViewAnimationOptionAllowUserInteraction;
|
|
|
#else
|
|
|
transition.animations = ^(__kindof NSView * _Nonnull view, NSImage * _Nullable image) {
|
|
|
CATransition *trans = [CATransition animation];
|
...
|
...
|
@@ -60,7 +60,7 @@ |
|
|
+ (SDWebImageTransition *)flipFromRightTransition {
|
|
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
|
|
#if SD_UIKIT
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromRight;
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromRight | UIViewAnimationOptionAllowUserInteraction;
|
|
|
#else
|
|
|
transition.animations = ^(__kindof NSView * _Nonnull view, NSImage * _Nullable image) {
|
|
|
CATransition *trans = [CATransition animation];
|
...
|
...
|
@@ -75,7 +75,7 @@ |
|
|
+ (SDWebImageTransition *)flipFromTopTransition {
|
|
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
|
|
#if SD_UIKIT
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromTop;
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromTop | UIViewAnimationOptionAllowUserInteraction;
|
|
|
#else
|
|
|
transition.animations = ^(__kindof NSView * _Nonnull view, NSImage * _Nullable image) {
|
|
|
CATransition *trans = [CATransition animation];
|
...
|
...
|
@@ -90,7 +90,7 @@ |
|
|
+ (SDWebImageTransition *)flipFromBottomTransition {
|
|
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
|
|
#if SD_UIKIT
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromBottom;
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromBottom | UIViewAnimationOptionAllowUserInteraction;
|
|
|
#else
|
|
|
transition.animations = ^(__kindof NSView * _Nonnull view, NSImage * _Nullable image) {
|
|
|
CATransition *trans = [CATransition animation];
|
...
|
...
|
@@ -105,7 +105,7 @@ |
|
|
+ (SDWebImageTransition *)curlUpTransition {
|
|
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
|
|
#if SD_UIKIT
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionCurlUp;
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionCurlUp | UIViewAnimationOptionAllowUserInteraction;
|
|
|
#else
|
|
|
transition.animations = ^(__kindof NSView * _Nonnull view, NSImage * _Nullable image) {
|
|
|
CATransition *trans = [CATransition animation];
|
...
|
...
|
@@ -120,7 +120,7 @@ |
|
|
+ (SDWebImageTransition *)curlDownTransition {
|
|
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
|
|
#if SD_UIKIT
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionCurlDown;
|
|
|
transition.animationOptions = UIViewAnimationOptionTransitionCurlDown | UIViewAnimationOptionAllowUserInteraction;
|
|
|
#else
|
|
|
transition.animations = ^(__kindof NSView * _Nonnull view, NSImage * _Nullable image) {
|
|
|
CATransition *trans = [CATransition animation];
|
...
|
...
|
|