mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix animation memory leak exacerbated every time you reload a conversation with expiration timers. Stop animation on cells that aren't currently being displayed. This is relatively minor compared to the above, but still, no reason to waste cycles. // FREEBIE
18 lines
388 B
Objective-C
18 lines
388 B
Objective-C
// Created by Michael Kirk on 9/29/16.
|
|
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface OWSExpirationTimerView : UIView
|
|
|
|
- (void)startTimerWithExpiresAtSeconds:(uint64_t)expiresAtSeconds
|
|
initialDurationSeconds:(uint32_t)initialDurationSeconds;
|
|
|
|
- (void)stopTimer;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|