mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 04:00:00 +00:00
28 lines
769 B
Objective-C
28 lines
769 B
Objective-C
#import "CATransactionGroup.h"
|
|
#import <Foundation/NSDictionary.h>
|
|
#import <Foundation/NSNumber.h>
|
|
#import <QuartzCore/CATransaction.h>
|
|
|
|
@implementation CATransactionGroup
|
|
|
|
- init {
|
|
_values = [[NSMutableDictionary alloc] init];
|
|
[_values setObject: [NSNumber numberWithFloat: 0.25]
|
|
forKey: kCATransactionAnimationDuration];
|
|
[_values setObject: [NSNumber numberWithBool: NO]
|
|
forKey: kCATransactionDisableActions];
|
|
// kCATransactionAnimationTimingFunction default is nil
|
|
// kCATransactionCompletionBlock default is nil
|
|
return self;
|
|
}
|
|
|
|
- valueForKey: (NSString *) key {
|
|
return [_values objectForKey: key];
|
|
}
|
|
|
|
- (void) setValue: value forKey: (NSString *) key {
|
|
[_values setObject: value forKey: key];
|
|
}
|
|
|
|
@end
|