Merge pull request #3094 from YuAo/transition_patch
[SDWebImageTransition] Fix: `duration` is not used in convenience initializers.
This commit is contained in:
commit
63130c6f74
|
@ -89,6 +89,7 @@ CATransition * SDTransitionFromAnimationOptions(SDWebImageAnimationOptions optio
|
||||||
|
|
||||||
+ (SDWebImageTransition *)fadeTransitionWithDuration:(NSTimeInterval)duration {
|
+ (SDWebImageTransition *)fadeTransitionWithDuration:(NSTimeInterval)duration {
|
||||||
SDWebImageTransition *transition = [SDWebImageTransition new];
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
||||||
|
transition.duration = duration;
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
transition.animationOptions = UIViewAnimationOptionTransitionCrossDissolve | UIViewAnimationOptionAllowUserInteraction;
|
transition.animationOptions = UIViewAnimationOptionTransitionCrossDissolve | UIViewAnimationOptionAllowUserInteraction;
|
||||||
#else
|
#else
|
||||||
|
@ -103,6 +104,7 @@ CATransition * SDTransitionFromAnimationOptions(SDWebImageAnimationOptions optio
|
||||||
|
|
||||||
+ (SDWebImageTransition *)flipFromLeftTransitionWithDuration:(NSTimeInterval)duration {
|
+ (SDWebImageTransition *)flipFromLeftTransitionWithDuration:(NSTimeInterval)duration {
|
||||||
SDWebImageTransition *transition = [SDWebImageTransition new];
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
||||||
|
transition.duration = duration;
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromLeft | UIViewAnimationOptionAllowUserInteraction;
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromLeft | UIViewAnimationOptionAllowUserInteraction;
|
||||||
#else
|
#else
|
||||||
|
@ -117,6 +119,7 @@ CATransition * SDTransitionFromAnimationOptions(SDWebImageAnimationOptions optio
|
||||||
|
|
||||||
+ (SDWebImageTransition *)flipFromRightTransitionWithDuration:(NSTimeInterval)duration {
|
+ (SDWebImageTransition *)flipFromRightTransitionWithDuration:(NSTimeInterval)duration {
|
||||||
SDWebImageTransition *transition = [SDWebImageTransition new];
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
||||||
|
transition.duration = duration;
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromRight | UIViewAnimationOptionAllowUserInteraction;
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromRight | UIViewAnimationOptionAllowUserInteraction;
|
||||||
#else
|
#else
|
||||||
|
@ -131,6 +134,7 @@ CATransition * SDTransitionFromAnimationOptions(SDWebImageAnimationOptions optio
|
||||||
|
|
||||||
+ (SDWebImageTransition *)flipFromTopTransitionWithDuration:(NSTimeInterval)duration {
|
+ (SDWebImageTransition *)flipFromTopTransitionWithDuration:(NSTimeInterval)duration {
|
||||||
SDWebImageTransition *transition = [SDWebImageTransition new];
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
||||||
|
transition.duration = duration;
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromTop | UIViewAnimationOptionAllowUserInteraction;
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromTop | UIViewAnimationOptionAllowUserInteraction;
|
||||||
#else
|
#else
|
||||||
|
@ -145,6 +149,7 @@ CATransition * SDTransitionFromAnimationOptions(SDWebImageAnimationOptions optio
|
||||||
|
|
||||||
+ (SDWebImageTransition *)flipFromBottomTransitionWithDuration:(NSTimeInterval)duration {
|
+ (SDWebImageTransition *)flipFromBottomTransitionWithDuration:(NSTimeInterval)duration {
|
||||||
SDWebImageTransition *transition = [SDWebImageTransition new];
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
||||||
|
transition.duration = duration;
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromBottom | UIViewAnimationOptionAllowUserInteraction;
|
transition.animationOptions = UIViewAnimationOptionTransitionFlipFromBottom | UIViewAnimationOptionAllowUserInteraction;
|
||||||
#else
|
#else
|
||||||
|
@ -159,6 +164,7 @@ CATransition * SDTransitionFromAnimationOptions(SDWebImageAnimationOptions optio
|
||||||
|
|
||||||
+ (SDWebImageTransition *)curlUpTransitionWithDuration:(NSTimeInterval)duration {
|
+ (SDWebImageTransition *)curlUpTransitionWithDuration:(NSTimeInterval)duration {
|
||||||
SDWebImageTransition *transition = [SDWebImageTransition new];
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
||||||
|
transition.duration = duration;
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
transition.animationOptions = UIViewAnimationOptionTransitionCurlUp | UIViewAnimationOptionAllowUserInteraction;
|
transition.animationOptions = UIViewAnimationOptionTransitionCurlUp | UIViewAnimationOptionAllowUserInteraction;
|
||||||
#else
|
#else
|
||||||
|
@ -173,6 +179,7 @@ CATransition * SDTransitionFromAnimationOptions(SDWebImageAnimationOptions optio
|
||||||
|
|
||||||
+ (SDWebImageTransition *)curlDownTransitionWithDuration:(NSTimeInterval)duration {
|
+ (SDWebImageTransition *)curlDownTransitionWithDuration:(NSTimeInterval)duration {
|
||||||
SDWebImageTransition *transition = [SDWebImageTransition new];
|
SDWebImageTransition *transition = [SDWebImageTransition new];
|
||||||
|
transition.duration = duration;
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
transition.animationOptions = UIViewAnimationOptionTransitionCurlDown | UIViewAnimationOptionAllowUserInteraction;
|
transition.animationOptions = UIViewAnimationOptionTransitionCurlDown | UIViewAnimationOptionAllowUserInteraction;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue